7.Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Solution:-
Time Complexity :- O(n)
Valid Palindrome II:
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.
Solution:
Algorithm: We will be comparing char from start and end. If there is a mismatch. Then we can make one deletion We will make one deletion and check and if the rest is string is palindrome.
Last updated