Skip to content
#

monotonic-stack

Here are 6 public repositories matching this topic...

Competitive programming problem designed to expose failure modes in frontier LLMs. Features a 3-layer trap invalidating greedy, O(N²) DP, and prefix-sum optimizations. Correct O(N log V) solution via monotonic stack + DP. Built for Turing's Python TopCoder Problemsetter Assessment.

  • Updated Jun 8, 2026
  • Python

Add this topic to your repo

To associate your repository with the monotonic-stack topic, visit your repo's landing page and select "manage topics."

Learn more