CodingReported in a candidate post, Jul 2025
Find the highest playing card from a list
Filed under IDFC First Bank
The question
Given a list of cards written as Rank-Suit strings (ranks 2 to 10, J, Q, K, A; suits H, D, C, S), return the highest card. Higher rank wins; ties are broken by suit order H < D < C < S; if rank and suit are identical, return the first one in the list. The list can hold up to 10^5 cards.
No write-up yet. Related questions below have one.
Related IDFC First Bank questions
Collected from public candidate posts and coding forums. Updated Nov 2026.