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, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
You know the right answer?
Implement the recursive function isPal(), which determines whether a string str is a simple palindro...
Questions
question
Mathematics, 25.05.2021 23:50
question
Mathematics, 25.05.2021 23:50
question
Mathematics, 25.05.2021 23:50
question
Mathematics, 25.05.2021 23:50
question
Mathematics, 25.05.2021 23:50