PDA

View Full Version : 3n+1 problem getting TLE(Time Limit Exception)


webdev
09-06-2009, 08:51 PM
hi all, i just started doing some uva problems.... first question was 3n+1 problem.... for those who don't know what it is..here is the question... ---Quote--- The Problem Consider the following algorithm: