| 
   Java 
 AP LESSON WORK 
 QUESTION 1 a) Choose one of
  the following famous recursion scenarios: ·       Triangular
  numbers ·       Factorial ·       Fibonacci
  numbers b) Implement a
  solution to your choice without using recursion. c) Implement a
  solution to your choice using recursion. QUESTION 2 
 a) Let Wn represent the number of ways that Mario can
  cross over n blocks. b) What about
  three block?  What is W3
  equal to? c) Four blocks? W4? d) Can you come
  up with a general equation for Wn that
  works for more than four blocks?  Hint:
  It will be recursive! 
  |