This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
cs-142:substrings-and-palindromes [2015/05/28 14:22] cs142ta [Problem-Solving] |
cs-142:substrings-and-palindromes [2015/05/28 14:23] cs142ta [Problem] |
||
---|---|---|---|
Line 1: | Line 1: | ||
=Substrings and Palindromes= | =Substrings and Palindromes= | ||
==Problem== | ==Problem== | ||
- | * Write a program using recursion to prompt for an input string and then | + | * Write a program that prompts for an input string and then uses two recursive functions to successively |
** generate all substrings of the input and | ** generate all substrings of the input and | ||
** check if the input is a palindrome | ** check if the input is a palindrome |