LeetCode 680 β€” Valid Palindrome II | Full Solution Explained

Difficulty Pattern Asked At LeetCode Link Easy Two Pointers Facebook, Amazon, Google, Microsoft leetcode.com/problems/valid-palindrome-ii πŸ“Œ  This problem is a direct follow-up to LeetCode 125 β€” Valid Palindrome. If you haven’t read that post yet, start there β€” it covers the Two Pointers palindrome template that this problem builds on. Valid Palindrome II is one of … Read more

LeetCode 125 β€” Valid Palindrome | Full Solution Explained

Difficulty Pattern Asked At LeetCode Link Easy Two Pointers (Opposite Ends) Facebook, Microsoft, Apple, Uber leetcode.com/problems/valid-palindrome πŸ“Œ  This is part of the Two Pointers series on Daily Dev Notes. LeetCode 125 is the perfect first Two Pointers problem to solve β€” it’s easy, clean, and teaches you the exact same pattern used in harder problems … Read more

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