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...## Remove All Occurrences of a Substring | LeetCode 1910 | Python | Solution

Click here to see the problem details. Problem Overview We will be given a string (s) and a substring (part). We have to remove all occurrences...

Continue reading...## Truncate Sentence | LeetCode 1816 | Python | Solution

Here is the problem link. Problem Overview This is an easy problem, and it’s basically a string-related problem. I hope you already read the problem description...

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...