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

Reverse Nodes in k-Group

HardLeetCode 25 ↗

The problem, in one line. Reverse a list k nodes at a time and leave a final group shorter than k exactly as it is. LeetCode 25.

The tell. Reverse, repeated in blocks, with a leftover that must stay put. It is the first card of this pattern inside a loop, guarded by a check that k nodes really are ahead.

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.