Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/JavaScript
/
Class
Backtracking/NQueens.js:1–1 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
NQueens {
2
constructor(size) {
3
if
(size < 0) {
4
throw RangeError(
'Invalid board size'
)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected