You are viewing a single comment's thread. Return to all comments →
return 6 * (2 ** math.floor(math.log2(1 + (t - 1) / 3))) - 2 - t
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Strange Counter
You are viewing a single comment's thread. Return to all comments →
return 6 * (2 ** math.floor(math.log2(1 + (t - 1) / 3))) - 2 - t