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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, alexabessin
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 3
image
Computers and Technology, 24.06.2019 15:00, bsndb5638
Universal windows platform is designed for which windows 10 version?
Answers: 1
image
Computers and Technology, 24.06.2019 15:40, elgallo5399
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
image
Computers and Technology, 24.06.2019 23:30, clairajogriggsk
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
Answers: 1
You know the right answer?
Implement the recursive function isPal(), which determines whether a string str is a simple palindro...

Questions in other subjects:

Konu
Mathematics, 04.02.2020 09:53
Konu
Geography, 04.02.2020 09:54