subject

Implement the recursive function isPal(), which determines whether a string str is a simple palindrome. A simple palindrome is a string consisting entirely of the characters a-z that reads the same forward and backward. For instance, the upcoming are palindromes:
dad, level, mom, madamimadam, .
Use the following declaration of isPal(): bool isPal (const string& str, int startIndex, int endIndex); It returns true when the substring in the index range [startIndex, endIndex) is a palindrome.
The conditions are Stopping Condition:
Result is true when startIndex >= endIndex -1 Result is false when str[startIndex] != str[endIndex-1]
Recursive Step:
Determine whether the substring of the str in the index range [startIndex+1, endIndex-1] is a palindrome.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 15:00
What questions about an audience should be asked during presentation preparation? check all that apply. what does the audience already know about the topic? how will multimedia tools inspire the audience? is the information interesting and engaging? how will this information affect the presentation? will the audience change the message’s purpose? what is likely to interest the audience?
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
Ahammer should not be applied to the gear shafts of an electric rotisserie because the shafts may be made of
Answers: 1
question
Computers and Technology, 25.06.2019 15:00
Vote! q: what should my profile picture be next? a. flaming orange z. -or- b. mera mera no mi fruit from one piece anime?
Answers: 1
You know the right answer?
Implement the recursive function isPal(), which determines whether a string str is a simple palindro...
Questions
question
Geography, 09.06.2020 07:57
question
Mathematics, 09.06.2020 07:57
Questions on the website: 13722361