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...LeetCode
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...First Unique Character in a String | LeetCode 387 | Python | Solution
This problem is pretty straightforward. Click here to see the problem. Problem Overview The problem description is one line and pretty simple. It says that we...
Continue reading...Reverse Vowels of a String | LeetCode 345 | Python | Solution
Click here to see the problem details on LeetCode. Reverse a string is a pretty common type of problem. We all know how to reverse a...
Continue reading...Richest Customer Wealth | LeetCode 1672 | Python | Solution
Click here to see the problem details. And read the problem details. Pretty simple problem. We will receive a 2D array. Where array[i] is the list...
Continue reading...Average of Levels in Binary Tree | LeetCode 637 | Python | Solution
Click here to see the problem details on LeetCode. Pretty simple Binary Tree problem. We can solve this using the Level Order Traversal algorithm. This way,...
Continue reading...Check if the Sentence Is Pangram | LeetCode 1832 | Python | Solution
Click here to see the problem details. It’s an easy LeetCode problem with straightforward problem details. In a simple word, we will be given a sentence...
Continue reading...Sum of Unique Elements | LeetCode 1748 | Python | Solution
Click here to see the problem details. Problem Overview This one is a very much simple problem. We have to find out the sum of all...
Continue reading...Binary Tree Preorder Traversal | LeetCode 144 | Python | Solution
Click here to see the problem on LeetCode. The problem description is pretty straightforward. We have to return all the nodes’ values following the preorder traversal...
Continue reading...