C++ Practice Problem – Collatz Conjecture
Time Limit: 2s Memory Limit: 192MB Problem Description Collatz Conjecture: A Japanese middle school student discovered a fascinating “theorem” and asked Professor Kakutani to prove it, but the professor was unable to do so, leading to the Collatz conjecture. The conjecture states that for any natural number, if it is even, divide it by 2; … Read more