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

Function backtrack

Week 07/id_246/LeetCode_52_246.py:11–36  ·  view source on GitHub ↗

:type row: 当前放置皇后的行号 :type hills: 主对角线占据情况 [1 = 被占据,0 = 未被占据] :type next_row: 下一行被占据的情况 [1 = 被占据,0 = 未被占据] :type dales: 次对角线占据情况 [1 = 被占据,0 = 未被占据] :rtype: 所有可行解的个数

(row = 0, hills = 0, next_row = 0, dales = 0, count = 0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

totalNQueens_1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected