#strings
Read more stories on Hashnode
Articles with this tag
[Problem Link] https://leetcode.com/problems/valid-parentheses/ · class Solution { public boolean isValid(String s) { Stack<Character> st =...
[Problem Link] https://leetcode.com/problems/valid-palindrome/ · class Solution { public boolean isPalindrome(String s) { int n =...
[Problem Link] https://leetcode.com/problems/valid-anagram/ · class Solution { public boolean isAnagram(String s, String t) { //treated as...
[Problem Link] https://leetcode.com/problems/ransom-note/ · class Solution { public boolean canConstruct(String ransomNote, String magazine) { ...
[Problem Link] https://leetcode.com/problems/longest-palindrome/ · class Solution { public int longestPalindrome(String s) { int[] count =...
[Problem Link] https://leetcode.com/problems/add-binary/ · class Solution { public String addBinary(String a, String b) { int ptra =...