Problem 846 · Medium
Always start a straight at the smallest remaining card and consume that card count of whole groups.
Open the interactive visualisation