일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 30. Substring with Concatenation of All Words
- Convert Sorted List to Binary Search Tree
- Python Code
- 109. Convert Sorted List to Binary Search Tree
- kaggle
- Generator
- Class
- DWG
- Protocol
- 운영체제
- 43. Multiply Strings
- concurrency
- shiba
- 밴픽
- Python Implementation
- 시바견
- 파이썬
- attribute
- 프로그래머스
- data science
- t1
- iterator
- 컴퓨터의 구조
- 315. Count of Smaller Numbers After Self
- Substring with Concatenation of All Words
- LeetCode
- 715. Range Module
- Python
- Decorator
- Regular Expression
Archives
- Today
- Total
목록monotonic stack (1)
Scribbling

Monotonic stack or monotonicly increasing/decreasing stack is a stack which keeps its elements in increasing/decreasing order. Monotonic stacks are useful when, - Finding the very previous less element of each element in a vector in O(N) time complexity - Finding the very next less element of each element in a vector in O(N) time complexity (1) Code Example To get the very previous less (or equa..
Computer Science/Algorithms & Data Structures
2022. 8. 8. 01:47