trapping-rain-water py3
This commit is contained in:
8
0011_container-with-most-water/NOTES.md
Normal file
8
0011_container-with-most-water/NOTES.md
Normal file
@@ -0,0 +1,8 @@
|
||||
## Approaches:
|
||||
|
||||
1. Brute force $O(N^2)$
|
||||
2. Two-pointer $O(N)$
|
||||
|
||||
## Follow-up questions
|
||||
|
||||
1. What if you could slant the container?
|
||||
Reference in New Issue
Block a user