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.