šŸŽ¢ ELI5 Park / LeetCode / Two Pointers

šŸ‘« Two Pointers

The "Bridge Crossing" Chapter

Two people walking toward each other on a bridge! Or one at start, one at end moving inward. Super efficient for sorted arrays!

Easy

Valid Palindrome

Is it the same forwards and backwards?

→
Medium

3Sum

Find all triplets that sum to zero!

→
Medium

Container With Most Water

Max water between two lines!

→

šŸŽÆ Brain Hack

Pointers at opposite ends! For sorted arrays, start left and right, move toward center. Eliminates O(n²) to O(n)! Perfect for "two sum in sorted array"!