Given a list of cards in your hand, determine whether the player is winning or not (Yes/No).
Unlock detailed company stats for this questionUpgrade
The interviewer presented the card game and its rules on a shared Google Slides deck before asking the question.
Expect follow-ups like
- If the current hand is not winning, can we make a single swap to turn it into a winning hand?
- If the cards in hand are not sufficient to win after a single swap, return a list of swaps that would make it a winning hand.
Format · 45-minute phone screen; the interviewer shared a Google Slides deck with the game rules.
Community answers
No answers contributed by the community yet.
Related questions
Given a list of ALLOW and DENY CIDR rules, determine whether an IP address is allowed or denied.Given 5 cards, implement a function that determines the best poker hand.Given a collection of rooms where Alibada is in one and moves one room a day to an adjacent room, write a program to determine if you can find Alibada with the given list of rooms.Related courses

Course

Course
Course
