Approach hintTry it first, then revealHide
The smallest remaining card must start some group. Keep counts in an ordered map, repeatedly start a group at the smallest card, and consume the next groupSize - 1 consecutive values or report failure.
The smallest remaining card must start some group. Keep counts in an ordered map, repeatedly start a group at the smallest card, and consume the next groupSize - 1 consecutive values or report failure.