3Sum | LeetCode | Solution Explained
LeetCode 15. 3Sum is a very popular interview question. I explain the brute-force solution, binary search optimization and...
Find Minimum in Rotated Sorted Array II | Solution Explained
What makes LeetCode 154. Find Minimum in Rotated Sorted Array II fun is the optimized solution. I explain...
Insert Delete GetRandom O(1) | Solution Explained
LeetCode 380. Insert Delete GetRandom O(1) is an implementation based question, requiring us to know the time complexities...
Next Greater Element I | Solution Explained + Stack Optimization
LeetCode 496. Next Greater Element I is a simple problem, since brute-force solution can get accepted. But, we...
Path Sum III | Solution Explained
LeetCode 437. Path Sum III. I explain the brute-force solution and the optimized solutions in detail for reducing...
Best Time to Buy and Sell Stock | A Compilation of Solutions
Best Time to Buy and Sell Stock is a popular series of problems on LeetCode. In this...
Diameter of Binary Tree | LeetCode | Solution Explained
Finding the Diameter of Binary Tree is a classic problem when it comes to understanding the basics...
Find All Duplicates in an Array | LeetCode | Solution Explained
442. Find All Duplicates in an Array is a medium problem on LeetCode, and is one of...
Island Perimeter | LeetCode | Solution Explained
463. Island Perimeter is an easy problem on LeetCode. I explore the Iterative solution and the depth first...