Question: Write a program to check whether a given sentence (ending with ' is a palindrome or not. The checking shall be carried out in a
Write a program to check whether a given sentence (ending with ' is a palindrome or not. The checking shall be carried out in a function to be called isPalindrome that takes as input the input sentence. isPalindrome shall ignore all spaces and shall return either true or false. Sample input /output: nut for a jar of tuna It's a palindrome! Borrow or rob Tt's a nalindrome! 1 0 0 5 1 0 1. Not a Palindrome
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
