
13.2 Recursion with a Return Value 946
13.2.1 Computing the Factorial of a Number 947
13.2.2 Computing the Greatest Common Divisor 952
13.3 Recursion with Two Base Cases 957
13.4 Programming Activity 1: Checking for a Palindrome 961
Instructions 963
Task Instructions 965
Troubleshooting 966
13.5 Binary Search Revisited: A Recursive Solution 966
13.6 Programming Activity 2: The Towers of Hanoi 972
Instructions 975
Task Instructions 977
Troubleshooting 978
13.7 Animation Using Recursion 978
13.8 Recursion Versus Iteration 982
13.9 Chapter Summary 984
13.10 Exercises, Problems, and Projects 985
Chapter 14 An Introduction to Data Structures 1001
14.1 ...