About 210,000 results
Open links in new tab
  1. Min Stack - LeetCode

    Min Stack - Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

  2. 155. Min Stack - In-Depth Explanation - AlgoMonster

    In-depth solution and explanation for LeetCode 155. Min Stack in Python, Java, C++ and more. Intuitions, example walk through, and complexity analysis. Better than official and forum …

  3. 155. Min Stack - Solution & Explanation

    Since a normal stack does not store any extra information about the minimum, the only way to find it is to temporarily remove every element, track the smallest one, and then put everything back.

  4. Min Stack - Leetcode Solution

    The key idea is to use a second stack to track the minimum value at each level of the main stack. Whenever we push a new value, we also push the new minimum (either the new value or the …

  5. 155. Min Stack - LeetCode Wiki

    Description Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class:

  6. LeetCode. Problem 45: Min Stack | by Lim Zhen Yang - Medium

    Sep 16, 2024 · Min Stack — LeetCode Problem 45: Min Stack Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

  7. 155. Min Stack - LeetCode Solutions

    LeetCode Solutions in C++23, Java, Python, MySQL, and TypeScript.

  8. Min Stack - LeetCodee

    Detailed solution explanation for LeetCode problem 155: Min Stack. Solutions in Python, Java, C++, JavaScript, and C#.

  9. LeetCode - 150 - Min Stack | Dmytro's Blog

    Jun 3, 2025 · int getMin() retrieves the minimum element in the stack. You must implement a solution with O(1) time complexity for each function. Methods pop, top, and getMin operations …

  10. Min Stack Leetcode Question & Solution | Hello, World!

    Find the solution of Min Stack Leetcode question with step by step explanation in 3 approaches and 5 solutions in languages like CSharp, Java, JavaScript, CPP, Python.