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

Scale AI计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(4)
OOD(1)
Algorithm(0)
System Design(1)
高频题(0)
Math(0)
全部(4)
OOD(1)
Algorithm(0)
System Design(1)
高频题(0)
Math(0)
1.Poker Hand Validation and Comparison
2.Debugging Interview: Contractor and Project Matching
3.Coding Interview: Array Rotation
4.Backend Practical: Places API and Routes API
1. Poker Hand Validation and Comparison
Implement a method that takes five cards, represented by a Card class with rank and suit, and determines if they form a valid poker hand according to Texas Hold'em rules, which include six different hand rankings. The hand may contain any number of JOKER cards, which can act as a wildcard for any rank and suit. The method should return True if the hand is valid, otherwise False. Additionally, implement a second method to compare two poker hands to determine which one is higher based on the rules of Texas Hold'em hand rankings.
2. Debugging Interview: Contractor and Project Matching
Given contractors, projects, and courses, with different projects recruiting contractors who have taken certain courses, how would you implement this relationship?
3. Coding Interview: Array Rotation
Implement a function to rotate an array. The difficulty is moderate, but the solution must be able to compile and handle corner cases.
4. Backend Practical: Places API and Routes API
The first step to building this application is to use the Places API to convert the resort names, as well as Joey’s home address, into place IDs, which can then be used in the rest of the Maps Platform APIs. Now that we’ve identified the place IDs of the locations Joey needs to travel to along his trip, we need to determine what the optimal route is to visit these locations to minimize travel time. We should use the Routes API to determine the time it takes to drive between each pair of these locations.