InterviewDB
Question
Uno Game: Simulate an Uno Card Game Round and Determine the Valid Plays for the Current Player
phone
Question Details
Problem Implement the core logic of an Uno game. A play is valid if the card matches the top of the discard pile by color OR by number/action, or if the card is a Wild. Implement: valid_plays(hand: list[str], top_card: str) -> list[str] apply_play(ca…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Onsite
Phone