News for hackers. Stuff that matters.
Re:N-queen puzzle in 4 lines of Scala by GregBuchholz on Sunday April 10, 2016 @12:28PM (#11466851)
Javascript anyone?

    !function r(y,a,z,b,x){for(x=y--?-1:print(a);++x<n;z&c|b&d||r(y,a+1?a+' '+x:x,z|c,b|d))c=(1|1<<y+9)<<x,d=1<<9+x-y}(n=readline())
http://golf.shinh.org/reveal.rb?N+Queens/murky-satyr_1217229...

There are no comments on this comment yet.