fork download
  1. var memo = [1, 1, 1];
  2.  
  3. function fib(x) {
  4. memo[x] = memo[x] || fib(x - 1) + fib(x - 2);
  5. return memo[x];
  6. }
  7.  
  8. print(fib(90));
Success #stdin #stdout 0.01s 29720KB
stdin
Standard input is empty
stdout
2880067194370816000