Example 2: Writing String Backwards
1. Write a string of length N backwards in terms of writing a string of length (N-1) backwards.
2. Base case :
Choice 1: Writing empty string.
Choice 2: Writing a string of length 1.
Previous slide
Next slide
Back to first slide
View graphic version