---
title: "Discussion on \"Day 8 of LeetCode\" | Hashnode"
description: "Discussion on \"Day 8 of LeetCode\". Documenting LeetCode solving.\nQ1\n155. Min Stack\nMedium. Stack\nUse two stacks. The minStack is to track current minimum number.\nclass MinStack:\n\n    def __init__(self):\n        self.stack = []\n        self.minStack = []\n\n    def push(self, val: int) -..."
url: "https://hashnode.com/posts/day-8-of-leetcode/65a82972a0e902e7f119f788"
---

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

Discussion

# [Day 8 of LeetCode](https://evelynsjourney.hashnode.dev/day-8-of-leetcode?utm_source=hashnode&utm_medium=feed)

Documenting LeetCode solving. Q1 155. Min Stack Medium. Stack Use two stacks. The minStack is to track current minimum number. class MinStack: def \_\_init\_\_(self): self.stack = \[\] self.minStack = \[\] def push(self, val: int) -...

Jan 17, 2024 · 2 min read · evelynsjourney.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#leetcodedaily](https://hashnode.com/tag/leetcodedaily)
-   [#leetcode-contest](https://hashnode.com/tag/leetcode-contest)
-   [#coding](https://hashnode.com/tag/coding)
-   [#python](https://hashnode.com/tag/python)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Evelyn Liu](https://hashnode.com/@evelynliu)

@evelynliu

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
