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...Python
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...Five Most Useful List Methods in Python
Intro List methods are useful, and we have to use these most of the time when working with List. There are more than five methods. But...
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...Min and Max Function in Python
Intro Python has so many built-in functions. These are really helpful. In this article, we will know about two useful built-in functions. Before getting into the...
Continue reading...10 Useful String Methods in Python
Introduction Generally, a string is consists of one or more characters. These characters can be the alphabet, numbers, etc. In most cases, we need to manipulate...
Continue reading...Queue | Data Structure
Introduction ‘Queue’ is another abstract and linear data structure. It’s almost like Stack. The difference is it follows the principle FIFO instead of LIFO. So let’s...
Continue reading...Create, read, update, and delete a file in Python
As a language, Python is one of my favorites. One of the main reasons behind it, it’s easy to learn. By the way, the purpose of...
Continue reading...