MCPcopy Create free account
hub / github.com/algorithm004-01/algorithm004-01 / isValidSudoku

Method isValidSudoku

Week 06/id_006/LeetCode_36_006.java:19–44  ·  view source on GitHub ↗

1. 遍历整个矩阵 2. 根据矩阵中元素的坐标,计算出子数独的索引:假设坐标位(i, j),矩阵为rows cols,子数独索引计算公式:(i / 3) 3 + j / 3 @param board @return

(char[][] board)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

subSudokuIndexMethod · 0.95
inValidateMethod · 0.95
getMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected