Skip to content

Instantly share code, notes, and snippets.

@dps
Created December 29, 2012 17:00
Show Gist options
  • Save dps/4408034 to your computer and use it in GitHub Desktop.
Save dps/4408034 to your computer and use it in GitHub Desktop.
$*.map{|a|(i=a=~/0/)?(v=*?1..?9).fill{|j|v-=[a[j+i-k=i%9],a[
k+j*=9],a[j%26+i-i%3-i%27+k]]}+v.map{|k|$*.<<$`<<k<<$'}:p(a)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment