Karat logoKarat
CodingMembers

Mahjong Hand Validator With Pairs, Triples and Runs

Members only

A coding question about validating a hand in a simplified tile game, where every tile must be placed in exactly one group. A second part extends the grouping rules, so the cleanest solution requires careful reasoning about which choices are forced.

SWE
medium
hashmap
greedy
recursion
backtracking
Frequency
Single report
Last asked
—
Stage
phone-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 5 talking points
  • 4 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...