Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ main
Function
main
CPP/recursion/JosephusProblem.cpp:16–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
}
15
16
int main()
17
{
18
int n = 14;
19
int k = 2;
20
k--;
21
int index= 0;
22
vector<int> person;
23
for (int i = 1; i <= n; i++) {
24
person.push_back(i);
25
}
26
Josh(person, k, index);
27
}
Callers
nothing calls this directly
Calls
2
Josh
Function · 0.85
push_back
Method · 0.80
Tested by
no test coverage detected