Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ERGO-Code/HiGHS
/ fib_sequential
Function
fib_sequential
check/TestHighsParallel.cpp:18–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
const bool dev_run = false;
17
18
int64_t fib_sequential(const int64_t n) {
19
if (n <= 1) return 1;
20
return fib_sequential(n - 1) + fib_sequential(n - 2);
21
}
22
23
int64_t fib(const int64_t n) {
24
if (n <= 20) return fib_sequential(n);
Callers
2
fib
Function · 0.85
fib_omp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected