Skip to content

Instantly share code, notes, and snippets.

@warmist
Created June 29, 2012 18:29
Show Gist options
  • Save warmist/3019845 to your computer and use it in GitHub Desktop.
Save warmist/3019845 to your computer and use it in GitHub Desktop.
Missing
-- missing.md
arr={1,2,3,4,6,8,7,9,10,11,12}
sum=0
for k,v in pairs(arr) do
sum=bit32.bxor(sum,v)
end
for i=1,#arr+1 do
sum=bit32.bxor(sum,i)
end
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment