CS 101 Lecture 15 - Recursive Structures and Methods I

Class Examples:

  1. Let's iteratively draw a target of nested rectangles.

    Click on IterNestedRectsController to show the example.

  2. Let's recursively draw a target of nested rectangles.

    Click on RecNestedRectsController to show the example.

  3. Let's compute factorial iteratively.

    Click on IterFactorial to show the example.

  4. Let's compute factorial recursively.

    Click on RecFactorial to show the example.