1/6
Loading...
🔄Palindrome Check
A palindrome is a string that reads the same forwards and backwards. Ex: RACECAR, level, radar 🔍 How to check: Start from both ends and move towards center!
Loading...
A palindrome is a string that reads the same forwards and backwards. Ex: RACECAR, level, radar 🔍 How to check: Start from both ends and move towards center!
A palindrome is a string that reads the same forwards and backwards. Using two pointers from both ends, we can check in O(n) time.