MCPcopy Create free account
hub / github.com/PengFTang/Algorithms-in-Java / solve

Method solve

Backtracking/N_Queens.java:57–76  ·  view source on GitHub ↗

solves the N-Queen problem by moving forward column by column if safe and moving backward if not @param board 2D board char array @param N size of board @param col current column working on @return true if find a location to place Q at col; false if not or done with placing all N Q's

(char[][] board, int N, int col)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 1

isSafeMethod · 0.95

Tested by

no test coverage detected