---
title: "Discussion on \"LeetCode 155: Min Stack — Step-by-Step Visual Trace\" | Hashnode"
description: "Discussion on \"LeetCode 155: Min Stack — Step-by-Step Visual Trace\". Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. All operations must be performed in O(1) time complexity."
url: "https://hashnode.com/posts/min-stack-visualization/69d7d25c9c7868e2061133c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 155: Min Stack — Step-by-Step Visual Trace](https://blog.tracelit.dev/min-stack-visualization?utm_source=hashnode&utm_medium=feed)

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. All operations must be performed in O(1) time complexity.

Apr 9 · 1 min read · blog.tracelit.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[tracelit](https://hashnode.com/@tracelit)

@tracelit

  
[View profile](https://hashnode.com/@tracelit)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
