Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pmorici
· 18y ago · 0 comments
He left out the most efficient solution. Using bits to store the positions instead of an array then you can check if the queens conflict with a couple bitwise &&'s instead of looping.
Comments
[–]
threadman
18y ago
interesting point - worth a comment in the blog post