Comment "PATTERN" and I'll send you the guide 🤝
Comment "PATTERN" and I'll send you the guide 🤝
LeetCode 11 - Container With Most Water with the two pointers pattern: start at both ends and always move the shorter line inward, since that's the only move that can find more water. Plus why checking every pair is O(n²).
#coding #code #leetcode #dsa #python
Comments
Comments from the original post on Instagram
No comments yet
