Skip to content

Monotonic stack [mp]

Micro pattern

Description

Keep unresolved values ordered and pop them when new input determines their final contribution.

Problems