LeetCode 11 β€” Container With Most Water | Full Solution Explained

Difficulty Pattern Asked At LeetCode Link Medium Two Pointers (Opposite Ends) Amazon, Google, Microsoft, Bloomberg, Apple leetcode.com/problems/container-with-most-water πŸ“Œ  This is part of the Two Pointers series on Daily Dev Notes. If you haven’t read the Two Pointers pattern guide yet, start there β€” it will make this solution much easier to understand. This problem has … Read more

LeetCode 167 β€” Two Sum II (Input Array Is Sorted) | Full Solution Explained

Difficulty Pattern Companies Leetcode Link Medium Two Pointers Amazon, Google, Microsoft, Adobe leetcode.com/problems/two-sum-ii-input-array-is-sorted πŸ“ŒΒ  Before reading this post, I recommend reading the Two Pointers Pattern Guide on this blog. It will make this solution click much faster. If you’ve solved the original Two Sum (LeetCode #1), you might think this is the same problem. It’s … Read more

Two Pointers Pattern in DSA β€” Complete Guide for Beginners

Β This is a pattern guide. After reading this, you will be able to recognise and solve Two Pointers problems confidently β€” not just memorise one solution. Let me ask you something. Have you ever solved a LeetCode problem by running two loops β€” one inside the other β€” and it worked fine on small inputs … Read more