WriteBackward(S);
if string is empty
do nothing; // this is the base case
else
{ write the last character of S;
WriteBackward(S - minus its last character;}
Lets now look at the code for WriteBackward(S).
Previous slide
Next slide
Back to first slide
View graphic version