MCPcopy Create free account
hub / github.com/MathProgrammer/CodeForces / find_initial_position

Function find_initial_position

C Programs/C Programs - 1/Shell_Game.c:28–61  ·  view source on GitHub ↗

Recursive function to find the initial position. Notice the following abc bac bca cba cab acb abc The same permutation repeats after every six operations. After reducing it to this, we simply move one step back at a time till we reach the zeroeth permutation.*/

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected