Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Hand of Straights

MediumLeetCode 846 ↗

The problem, in one line. Given a hand of numbered cards and a group size, say whether the whole hand can be dealt into groups of that size where each group is consecutive numbers. LeetCode 846.

The tell. Cut a pile into runs of consecutive values, and every card must be used. When one end of the order is forced, here the smallest card, you never need to guess where a group starts.

Included with a plan

This solution is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.