DSA Factory
Curriculum
Level 3 · Structures

Greedy

About 20 steps, from the first idea to a mastery test.

  1. Stage 0Take the best nowFree
    1. 1Making change7 min
    2. 2Assign cookies8 min
    3. 3Change at the chai stall8 min
    4. 4Maximum units on truck8 min
  2. Stage 1Sort then chooseFree
    1. 1Most meetings in one room15 min
    2. 2Fewest arrows for balloons15 min
    3. 3Send people to two cities15 min
    4. 4Biggest number from parts18 min
  3. Stage 2Reach and jumpFree
    1. 1Can you reach the end?15 min
    2. 2Fewest jumps to the end18 min
    3. 3Full circle road trip20 min
    4. 4Split so letters stay together18 min
  4. Stage 3Exchange argumentsFree
    1. 1Shortest job first15 min
    2. 2Most courses before the deadlines22 min
    3. 3Fair candies for the line18 min
    4. 4Smallest number after removing digits20 min
  5. Stage 4MasteryFree
    1. 1Schedule tasks with a cooldown22 min
    2. 2Rebuild the line22 min
    3. 3Fewest fuel stops25 min
    4. 4Split into runs of three25 min
Start freeTry a step first