Skip to content
intermediate

Greedy Techniques

Make provably safe local choices that lead to a globally optimal result.

Problems

Problems in Greedy Techniques

Practice problems that share this primary solution pattern and compare the clues that reveal it.

A laptop glows in a dark room at night with a cityscape through the window. Ideal for tech and solitude themes.
intermediate
10 min read

Jump Game

The wrong mental model is a tree of jump paths. The useful model is a moving boundary: the farthest index reachable by any valid path found so far.

View solution
High-angle drone shot capturing vibrant green farm field patterns from above.
intermediate
11 min read

Jump Game II

The common mistake in a Jump Game II solution is to commit too early: “From this index, which landing position should I choose?” That creates a path-search…

View solution