Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4502773
tco_fib.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
262 B
Referenced Files
None
Subscribers
None
tco_fib.js
View Options
function
fib
(
n
)
{
if
(
n
<
2
)
return
n
;
return
fib
(
n
-
1
)
+
fib
(
n
-
2
);
}
const
start
=
performance
.
now
();
const
result
=
fib
(
30
);
const
end
=
performance
.
now
();
console
.
log
(
`fibonacci(30) =
${
result
}
`
);
console
.
log
(
`Time:
${
(
end
-
start
).
toFixed
(
2
)
}
ms`
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 9:14 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
535124
Default Alt Text
tco_fib.js (262 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment