The Nested Loop Lies
A monotonic stack scan has a while loop nested inside a for loop, and a single iteration of the outer loop can pop the entire stack. A candidate is asked why the whole scan is still rather than . Which justification is the one that actually proves it?
Sign in to answer questions and track your progress
Sign In