Algo Notes
  • Graphs
    • Shortest Paths
    • Union-Find
    • Minimum Spanning Trees
  • Two Pointers
  • Sliding Window
  • Stack & Queues
    • Monotonic Stack
  • Priority Queues
  • Dynamic Programming
  • Binary Indexed Tree (Fenwick Tree)
Powered by GitBook
On this page
  1. Stack & Queues

Monotonic Stack

  • We maintain a stack with non-decreasing or non-increasing elements

PreviousStack & QueuesNextPriority Queues

Last updated 3 years ago