protected void Solve(CollatzChain chain) { if (chain.CurrentNumber % 2 == 0) { chain.CurrentNumber /= 2; } else { chain.CurrentNumber = chain.CurrentNumber * 3 + 1; } }
public abstract int SolveCollatzBruteForce(CollatzChain chain);
public abstract int SolveCollatzMemoized(CollatzChain chain);