Question DSA-TP-0077
HardHow can you check whether a string is a palindrome after removing at most one character?
- A.
Two pointers from both ends; at the first mismatch, try skipping either character and check the rest
- B.
Reverse it
- C.
Use a stack only
- D.
Check every possible removal
Sign up free to see the answer and a step-by-step explanation.