To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 7743ed6d authored by Zixian Cai's avatar Zixian Cai
Browse files

Add JavaScript implementation of fib

parent cd869a1f
function fib(n) {
if (n === 1 || n === 0) {
return 1;
}
return fib(n - 1) + fib(n - 2);
}
const startTime = process.hrtime();
console.log(fib(35));
const diffTime = process.hrtime(startTime);
console.log(String(diffTime[0] + diffTime[1] / Math.pow(10, 9)));
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment