LeetCode 230 I hope you already know about Binary Search Tree. In BST, each node is greater than its left subtree and smaller than its right...
Continue reading...Python
Binary Tree Level Order Traversal | LeetCode 102 | Python | Solution
LeetCode 102 This problem just simply the implementation of the level order traversal algorithm. If you don’t know about level order traversal yet, you can check...
Continue reading...Maximum Depth of Binary Tree | LeetCode 104 | Python | Solution
LeetCode 104 It’s a common and basic type of problem. The problem title is self-explanatory. We all know about a binary tree. To solve this problem,...
Continue reading...Level Order Traversal – BFS Algorithm
This one is another way of traversing through a binary tree. There are many other ways you can do it. Click here to check. Level order...
Continue reading...Guess The Number – Simple Game Using Python
This game is surely not going to be the fanciest game. But any beginner with a basic knowledge of the Python programming language can built-it and...
Continue reading...Two Sum | LeetCode 1 | Python | Solution
LeetCode 1 Read the problem description first and think about the problem. We will be given an integer array and target. Target is also an integer....
Continue reading...Largest Odd Number in String | LeetCode 1903 | Python | Solution
LeetCode 1903 It’s a simple problem. We have to return the largest odd number from the given string. If we check odd numbers from the last,...
Continue reading...Palindrome Number | LeetCode 9 | Python | Solution
LeetCode 9 Before getting into the solution, let’s see the definition of a palindrome. According to Wikipedia: A palindrome is a word, number, phrase, or other...
Continue reading...Ransom Note | LeetCode 383 | Python | Solution
LeetCode 383 Problem Overview Ransom Note is a pretty common programming problem. The problem description is concise and understandable. So, this problem says that we will...
Continue reading...Group Anagrams | LeetCode 49 | Python | Solution
LeetCode 49 If you know how to valid anagram, this one will be easier for you to solve. You can check this to know about it...
Continue reading...