Algorithm: column-by-column backtracking, exactly the C++ in hw2/NQueens/Board.cpp, compiled with Emscripten. View the wasm shim source here.