leetcode/0011_container-with-most-water/NOTES.md

9 lines
129 B
Markdown
Raw Normal View History

2022-04-23 15:58:55 +00:00
## Approaches:
1. Brute force $O(N^2)$
2. Two-pointer $O(N)$
## Follow-up questions
1. What if you could slant the container?