LeetCode 1903 It’s a simple problem. We have to return the largest odd number from the given string. If we check odd numbers from the last,...
Continue reading...String
Ransom Note | LeetCode 383 | Python | Solution
LeetCode 383 Problem Overview Ransom Note is a pretty common programming problem. The problem description is concise and understandable. So, this problem says that we will...
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...Valid Anagram | LeetCode 242 | Python | Solution
Click here to see this problem on LeetCode. This problem’s difficulty level is easy. Problem Overview Simple problem. From the given two strings, we have to...
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...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...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...