#strings
Read more stories on Hashnode
Articles with this tag
Longest Palindromic Substring Problem...
Valid Anagram Problem Link: https://leetcode.com/problems/valid-anagram/description/ My approach: I used the concept of hashing. You can use hashmap...
Rotate String Problem Link: https://leetcode.com/problems/rotate-string/description/ Hint: Use 'substr' method to change the string without actually...
Isomorphic Strings Problem Link: https://leetcode.com/problems/isomorphic-strings/description/ My approach: We have to do bi-directional mapping so I...
Longest Common Prefix Problem Link: https://leetcode.com/problems/longest-common-prefix/description/ My approach: I sorted the array in the ascending...
Remove Outermost Parentheses Problem Link: https://leetcode.com/problems/remove-outermost-parentheses/description/ Solution: Using Stack: We will use...