final-prices-stack-holds-unresolved-indices

Status: IN

During iteration, the monotone stack contains indices of items that have not yet found a discount — items still waiting for a `prices[j] <= prices[i]` with `j > i`.

Source: entries/2026/06/06/final-prices-with-a-special-discount-in-a-shop-solution.md

JSON