Zip·Software Engineer·Technical Phone Screen
- Given an array of playing card strings in the format rank+suit, find all valid groups where a group is either a same-suit consecutive run of at least 3 cards (and you must output every contiguous sub-run of length 3 or more within each maximal run) or a same-rank set of at least 3 cards. Return all such groups.
“The same-rank part was fine, group by rank, check count >= 3, done.”