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...
Best Time to Buy and Sell Stock with Cooldown | Solution Explained
LeetCode 309. Best Time to Buy and Sell Stock with Cooldown. I solve this problem using recursion. Solution...
Perfect Squares | LeetCode | Solution Explained
279. Perfect Squares on LeetCode is a mathematical problem, requiring us to pair math with algorithms. I explore...
Construct BST from Preorder Traversal | LeetCode | Solution Explained
1008. Construct Binary Search Tree – BST from Preorder Traversal is a question which relies upon understanding the...
Guess Number Higher or Lower | LeetCode | Solution Explained
374. Guess Number Higher or Lower LeetCode is based on the understanding of binary search, and how we...
Diameter of Binary Tree | LeetCode | Solution Explained
Finding the Diameter of Binary Tree is a classic problem when it comes to understanding the basics...
Bitwise AND of Numbers Range | Brian Kernighan | LeetCode | Solution Explained
201. Bitwise AND of Numbers Range. Would have been easy if we were allowed to iterate over all...
Word Search II | LeetCode | Solution Explained
Word Search II is an amazing problem, building on top of two other problems: Word Search I...
Implement Trie (Prefix Tree) | LeetCode | InterviewBit | Solution Explained
LeetCode problem 208. Implement Trie (Prefix Tree) asks us to implement a Prefix Tree or a Trie. They...
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...