You are viewing a single comment's thread. Return to all comments →
C# or JS
public static long strangeCounter(long t) { long initVal = 3; while (t > initVal) { t -= initVal; initVal *= 2; } return initVal - 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 →
C# or JS