Search found 2 matches

by Ariens
Sat Feb 14, 2009 7:20 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320852

Re: 100

i & 1 and changing the cycleLenght method to final was enough.

Thanks
by Ariens
Sat Feb 14, 2009 1:17 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320852

Re: 100

Hi, I just got this problem accepted in C++ but with java it always TLEs

Code: Select all

import java.util.Scanner;

class Main {
	
	static int cycleLenght(int i) {

	}
	
	public static void main (String [] args)
	{

	}
}

Go to advanced search