The Sierpinski gasket
So far, the examples of recursion that we've seen require you to make one recursive call each time. But sometimes you need to make multiple recursive calls. Here's a good example, a mathematical construct that is a fractal known as a Sierpinski gasket:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy