Module Monotonic queue

Monotonic queue

**Frequency: 3/10**

Resources

- [USACO: Stacks](https://usaco.guide/gold/stacks?lang=cpp)

Problems

Nearest position 251 / 252 1200
Subarray minimum 222 / 233 1300
Peak Product 195 / 201 1400
Histogram 185 / 187 1500
Maximum subsequence value 120 / 129 1600
Deleting digits 139 / 147 1600
Electric poles 58 / 91 1700
Planting flowers 53 / 63 1700
Ring road 30 / 39 1700
Prefix minimum 52 / 67 1900
Knee surgery 30 / 36 1900