- resources
- need to learn to distinguish when u need each data structure
ds | difficulty | thoughts | |
---|---|---|---|
Daily Temperatures | stack | med | didnt rly know u could use monotonic array, and the idea of storing the indices didnt even occur to meππ |
Arrays
- maximum diff between increasing elements - easy
- valid sudoku - med
- product of array except self - med
- number of adjacent elements with the same color - med (moloco)
- rabbits in forest - med
2D arrays
- rotating the box - med (moloco)
two pointers
- reverse string - easy
- container with most water - medium
- two sum - easy
- two integer sum ll - med
- 3Sum - med
- trapping rain water - hard
stack
- valid parenthesis - easy
- min stack - easy
- evaluate reverse polish notation - med
- Daily Temperatures - med
binary search
- binary search - easy