You are viewing a single comment's thread. Return to all comments →
long strangeCounter(long t) { long sum =3, counter = 3; while(sum < t){ counter = counter*2; sum += counter; } return sum - t + 1; }
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Counter
You are viewing a single comment's thread. Return to all comments →