DEV Community

Cover image for Understanding the Monotonic Stack To UP Your Data Structure Game
about14sheep
about14sheep

Posted on • Edited on

1 1 1 1 1

Understanding the Monotonic Stack To UP Your Data Structure Game

The Monotonic Stack be very difficult to understand, and even hard to actually utilize!

I wrote up a solution over on leetcode that solves the problem 1475. Final Prices With a Special Discount in a Shop.

I am testing out using DEV to get feedback on solutions I write up (over on leetcode), so please check it out!

Monotonic Stack Solution and Tutorial

If this helps feel free to let me know either here or there! If you have any suggestions, or see things I can make more clear, don't hesitate to let me know!

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay