X282: Recursion Programming Exercise: Is Reverse

For function 'isReverse', write the two missing base case conditions. Given two strings, this function returns true if the two strings are identical, but are in reverse order. Otherwise it returns false. For example, if the inputs are "tac" and "cat", then the function should return true.


isReverse("tac", "cat") -> true

Your Answer:


Practice a different Java exercise


Your feedback will appear here when you check your answer.