r/Recursion • • Mar 16 '22

Recursive Triangle Using Recursive Squares

265 Upvotes

22 comments sorted by

View all comments

Show parent comment

3

u/the_current_solution Mar 16 '22

Good to hear! And yea theres no need to draw the squares, but drawing them makes it more clear what the sub-problems of this recursive function are. I programmed this so the squares being drawn or not is defined by a bool.