Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuprDewd/CompetitiveProgramming
/ f1
Function
f1
code/other/floyds_algorithm.test.cpp:3–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
int m;
2
3
int f1(int x) {
4
if (x < 0) return x + 1;
5
return (x + 1) % m;
6
}
7
8
void test() {
9
for (int i = 0; i < 20; i++) {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected