You are viewing a single comment's thread. Return to all comments →
Simple Javascript Solution:
function strangeCounter(t) { let a = 3; let x = 1; let y = 3; while (y < t) { a = a * 2; x = y + 1; y = x + (a - 1); } return (a - (t-x)) }
Strange Counter
You are viewing a single comment's thread. Return to all comments →
Simple Javascript Solution: