<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

CodeSignal计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(3)
OOD(0)
Algorithm(1)
System Design(2)
高频题(0)
Math(0)
全部(3)
OOD(0)
Algorithm(1)
System Design(2)
高频题(0)
Math(0)
1.Minimum Result of Combinations Similar to 12*56 for 123+456
2.Design a Worker Position Salary System
3.Bank Statement System Design
1. Minimum Result of Combinations Similar to 12*56 for 123+456
For the expression 123+456, find all possible combinations similar to 12*56 and determine the minimum result.
2. Design a Worker Position Salary System
Design a system to manage worker positions and salaries. The system should be able to handle adding workers with their respective positions and compensations, registering time entries and exits, promoting workers, setting periods for double pay, and calculating salaries over a given period. Ensure that the system can also retrieve the total time worked by a worker and list the top N workers based on time spent in a specific position. Discuss how you would implement this system, considering data structures, algorithms, and potential edge cases.
3. Bank Statement System Design
Design a bank statement system with the following functionalities: 1. Support for creating an account, deposit, and transfer operations. Describe how you would implement these features. 2. Implement a feature to identify the top spenders, where you need to return the top 'n' individuals who spent the most, considering a transfer from A to B as A spending money. 3. Add a 'Pay' feature that requires a user to spend money, with a cashback occurring 24 hours later. The money spent should be included in the spending calculation, and the balance after 24 hours should reflect the cashback. 4. Include the ability to merge accounts and retrieve an account balance with support for timestamps. Explain how you would manage the timestamp functionality for the 'get balance' feature.