Stacks and Monotonic Structures
38 / 170Stacks and Monotonic StructuresLesson 8 of 8About 50 min
Two problems rebuilt cold, plus the signal that separates a stack problem from a window problem.
For each building in a row, report how many buildings to its right are visible before a taller one blocks the view. Which approach fits?
You have solved this one before. Rebuild it from scratch without looking at your old submission. If the approach does not come back within a few minutes, that is the signal that it needs another pass.
You have solved this one before. Rebuild it from scratch without looking at your old submission. If the approach does not come back within a few minutes, that is the signal that it needs another pass.