IntermediateVocabulary#software-architecture#developer-tools#backend

Monotonic Stack Vocabulary

Build fluency in the vocabulary of a stack kept in increasing or decreasing order while scanning an array.

0 / 5 completed
1 / 5
At standup, a dev mentions scanning an array while keeping a stack whose elements always stay in increasing (or always decreasing) order, popping off any element that would break that order before pushing the current one. What is this technique called?