We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
PERFORMANCE HINT: It pays to look at the "environment" link at the bottom of the page! My code was a bit too slow to handle case 4 (14), and it seems one bottleneck in union-ing sets. The test environment includes a library called int-map which is significantly faster and solved the problem.
Super-Queens on a Chessboard
You are viewing a single comment's thread. Return to all comments →
A Clojure solution that handles all test cases.
PERFORMANCE HINT: It pays to look at the "environment" link at the bottom of the page! My code was a bit too slow to handle case 4 (14), and it seems one bottleneck in union-ing sets. The test environment includes a library called int-map which is significantly faster and solved the problem.