Skip to content

Instantly share code, notes, and snippets.

@xenophobia
Created March 15, 2015 09:10
Show Gist options
  • Save xenophobia/f11f9859a69322831d12 to your computer and use it in GitHub Desktop.
Save xenophobia/f11f9859a69322831d12 to your computer and use it in GitHub Desktop.
function solve(t,n){return ("0".repeat(n)+(t^t>>1).toString(2)).slice(-n)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment