Clinic #27: Jump Game
Pattern: Greedy · LC 55

Shows a catalog of five moves for attacking a problem. This clinic is the move called greedy (grab the best-looking choice now, never look back), used on a problem where that can be proven safe.
Before you start. Algorithm Design Patterns showed that “grab the best-looking choice and never look back” can be flatly wrong: with coins of 1, 3 and 4, grabbing the 4 first for an amount of 6 costs you a coin. Here you meet the same plan on a problem where it can never be wrong, and the whole skill is seeing why. The only other thing you need is a list: numbers in a row, each in a numbered slot starting from 0.