blog.adilakhter.com
UVa 100. The 3n+1 Problem: Solving with a Brute-force Algorithm
The UVa 100: The 3n+1 Problem is about collatz problem, which we have discussed in details in a recent post. The following Java code describes a brute-force algorithm to solve this problem. In addi…