This solution is very intuitive — we will simply reverse the string and compare it to the original. If they are equal, it's a palindrome.
確定! 回上一頁