MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / main

Function main

Miscellaneous/Gray Code.cpp:15–20  ·  view source on GitHub ↗

property: g(i) = g(i - 1) ^ (1 << lsb(i))

Source from the content-addressed store, hash-verified

13
14// property: g(i) = g(i - 1) ^ (1 << lsb(i))
15int32_t main() {
16 ios_base::sync_with_stdio(0);
17 cin.tie(0);
18
19 return 0;
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected