We all know about the loop. A loop is a fundamental concept in any programming language. Generally, we use a loop for repetitive tasks or go...
Continue reading...Array
Kth Smallest Element in a BST | LeetCode 230 | Python | Solution
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...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 Number of Words Found in Sentences | LeetCode 2114 | LeetCode | Python | Solution
LeetCode 2124 This one is one of the easy problems on LeetCode. To solve this problem, mainly you have to know how to split a sentence...
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...Kth Largest Element in an Array | LeetCode 215 | Python | Solution
LeetCode 215 From an integer array, we have to find the kth largest element. I assume that you already know about the sorting algorithms. We all...
Continue reading...Move Zeroes | LeetCode 283 | Python | Solution
Click here to see the problem details on LeetCode. Problem Overview This problem’s difficulty level is easy. The problem description is straightforward. In an integer array,...
Continue reading...Majority Element | LeetCode 169 | Python | Solution
Click here to see the problem details on LeetCode. Solution Simple problem. We need to find out the majority element from an integer array.Suppose we have...
Continue reading...Find First and Last Position of Element in Sorted Array | LeetCode 34 | Python | Solution
Click here to see the problem details on LeetCode. Problem Overview We will be given an integer array (sorted in no-decreasing order) and an integer. We...
Continue reading...Shuffle String | LeetCode 1528 | Python | Solution
Click here to see the problem details. Problem Overview This problem is quite simple. We will be given a string (s) and an array (indices) that...
Continue reading...