trapping-rain-water py3

This commit is contained in:
2022-04-23 21:28:55 +05:30
parent a0b3f7f134
commit a115f39b17
4 changed files with 63 additions and 0 deletions

View 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?