InterviewDB Experience

Card Hand Validation - Coding Interview

Interview Experience

Problem Given a list of 5 card strings (e.g., "AS", "10H", "KD"), classify the poker hand. Cards are rank + suit where rank is one of A,2,3,...,10,J,Q,K and suit is C,D,H,S. Return the hand rank as a string: "royal_flush", "straight_flush", "four_of_a_kind", "full_house", "flush", "straight", "three_of_a_kind", "two_pair", "one_pair", "high_card" Example: Note: Ace can be low (A-2-3-4-5) or high (10-J-Q-K-A). Follow-ups How do you handle the low-ace straight edge case cleanly? Extend to compare…

Full Details

🔒

Unlock all Codesignal questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a candidate experience report from a codesignal interview.

It covers the following topics: Q3, Coding, General Coding Assessment, Strings .