Skip to content

Commit

Permalink
Maintain the same semantics as other languages in n_queens.go (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomiusa87 committed May 3, 2024
1 parent d2d4955 commit ee67d3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codes/go/chapter_backtracking/n_queens.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func backtrack(row, n int, state *[][]string, res *[][][]string, cols, diags1, d

}
*res = append(*res, newState)
return
}
// 遍历所有列
for col := 0; col < n; col++ {
Expand Down

0 comments on commit ee67d3e

Please sign in to comment.