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

Method isSafe

Backtracking/N_Queens.java:35–47  ·  view source on GitHub ↗

checks if placing Q at [row][col] is safe @param board 2D board char array @param N size of board @param row current row working on @param col current column working on @return true if it's safe to place Q at [row][col]; false if otherwise

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

solveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected