▸ weekly challenges, visualized step-by-step.
-
Bubble Sort
Walk through the simplest sorting algorithm: scan the array, swap adjacent out-of-order pairs, repeat until a full pass has no swaps.
-
Climb Stairs
Count the distinct ways to climb n stairs taking 1 or 2 steps at a time. The recursion explores every path and counts the leaves.
-
Fulfilled Orders Before Failure
Process an order queue against a freezer of flavors. Each order consumes one of each listed flavor; the first order that asks for an empty slot stops the line.
-
Get Sundays
TODO: describe this challenge in one sentence.
-
Longest Sorted
Find the longest word in a sentence whose letters appear in alphabetical order (e.g. "almost").
-
Min Moves
Rotate each digit of a 4-dial lock the minimum number of clicks to reach the goal combination, counting both directions and wrapping 9→0 / 0→9.
-
Pack Rectangles
Drag wooden rectangles onto the board — fit every piece the algorithm says is possible, rotating as needed.
-
Partition Array
Walk the array once. Send every odd to its bucket, every non-zero even to its bucket, and every zero to its bucket. The result is the three buckets concatenated.
-
Quick Sort
Pick a pivot, partition the array so smaller values go left and larger go right, then recurse on each side. The pivot ends up in its final sorted position after each partition.
-
Reorder
Reorder an array in place by following the destination indices, one cycle at a time.
-
Trim
A project where you have to trim the blank spaces from a string at the leading, trailing, or both. With a nice visualization inspired by the Pacman video game, the pacman will gladly eat those white spaces for you.
▸ no challenges match your search