In Section 5.2 we prove by induction that the number of lines printed by a call to drawInterval(c) is 2c−1. Another interesting question is how many dashes are printed during that process. Prove by induction that the number of dashes printed by drawInterval(c) is 2c+1−c−2.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.