DSA Factory
Curriculum
Level 3 · Structures

Heaps

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

  1. Stage 0Smallest firstFree
    1. 1Extract smallest elements8 min
    2. 2Connect ropes8 min
    3. 3Last stone weight8 min
    4. 4Reduce largest piles8 min
  2. Stage 1Top kFree
    1. 1The kth biggest value14 min
    2. 2The k most common values16 min
    3. 3The points nearest the origin16 min
    4. 4Tasks that need a cool-down22 min
  3. Stage 2Merging streamsFree
    1. 1Merge many sorted lists16 min
    2. 2The kth smallest in a sorted grid16 min
    3. 3The pairs with the smallest sums18 min
    4. 4The middle value so far22 min
  4. Stage 3MasteryFree
    1. 1Pick the best team22 min
    2. 2Fund the best projects22 min
    3. 3Ladders or bricks20 min
Start freeTry a step first