From 9ad6f34705b0cb48aef053fb253b8c4730be4d85 Mon Sep 17 00:00:00 2001 From: Ken Date: Mon, 18 Feb 2019 14:49:52 -0800 Subject: [PATCH] adding hint about what fibonacci sequence is --- step2-01/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/step2-01/README.md b/step2-01/README.md index 6bb1042..1416688 100644 --- a/step2-01/README.md +++ b/step2-01/README.md @@ -25,6 +25,8 @@ Please complete all exercises inside the `exercise/src` folder unless otherwise 3. Inside the file from (step 2), write a function called `fib(n)` that takes in a number and returns a the n-th Fibonacci number - be sure the specify the type of n +> HINT: fib(n) = fib(n - 1) + fib(n - 2); fib(n <= 1) = n; + 4. Export `fib(n)` as a **named export** 5. Export another const variable as a **default export**