Skip to content

Instantly share code, notes, and snippets.

@iokiwi
Created August 3, 2016 03:11
Show Gist options
  • Select an option

  • Save iokiwi/7d7edcff8d9c3c59e7a13f3d77fe08ec to your computer and use it in GitHub Desktop.

Select an option

Save iokiwi/7d7edcff8d9c3c59e7a13f3d77fe08ec to your computer and use it in GitHub Desktop.
This is a puzzle used by Telogis to pre screen job applicants
z=3*0x41662d2d*1237
50872726249;b=(z&1)<
<4;a=b--;o=[];c=a--
b;x=b-a;while(z){x=a&
x?a&b:c+x;{o[z&b^x]=
(x+6*a+b/3/4*c).chr;z
=z/a/a;if(!(z/a&b^x))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment