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...LeetCode
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...Merge Two Sorted Lists | LeetCode 21 | Python | Solution
Click here to see the problem details. Problem Overview The problem description is pretty straightforward. We are given two sorted Linked List. And we have to...
Continue reading...Insert into a Binary Search Tree | LeetCode 701 | Python | Solution
Click here to see the problem details. Read the problem details first. Concept This is clearly a Tree related problem and a medium-type problem. In my...
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...Valid Palindrome | LeetCode 125 | Python | Solution
Click here to see the problem details on LeetCode. Before solving this problem, we have to know about palindrome. According to the definition of Wikipedia: A...
Continue reading...