| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
Tags
- Decorator
- 109. Convert Sorted List to Binary Search Tree
- Python Implementation
- Python Code
- iterator
- 운영체제
- Regular Expression
- 파이썬
- Substring with Concatenation of All Words
- 43. Multiply Strings
- shiba
- 시바견
- attribute
- Class
- 715. Range Module
- 30. Substring with Concatenation of All Words
- t1
- 315. Count of Smaller Numbers After Self
- 컴퓨터의 구조
- Protocol
- Convert Sorted List to Binary Search Tree
- 프로그래머스
- DWG
- concurrency
- Generator
- LeetCode
- data science
- Python
- 밴픽
- kaggle
Archives
- Today
- Total
목록Min Stack (1)
Scribbling
LeetCode: 155. Min Stack
class MinStack: def __init__(self): self.stack = [] def push(self, val: int) -> None: if not self.stack: self.stack.append([val, val]) else: self.stack.append([val, min(val, self.stack[-1][1])]) def pop(self) -> None: self.stack.pop() def top(self) -> int: return self.stack[-1][0] def getMin(self) -> int: return self.stack[-1][1] # Your MinStack object will be instantiated and called as such: # ..
Computer Science/Coding Test
2021. 11. 30. 13:41