Fmars Blog
Inner happiness comes from self-sacrifice
My Blog List
[Leetcode Solution]N-Queens
Analysis
The problem itself is simply just using a dfs could get the result
Note
The interesting thing happened from the valid check part. It is about the C++
data type conversion of unsigned int
,
details can be found here
Code
UPDATED AT LEETCODE 2ND PASS
No comments:
Post a Comment
Enter you comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Enter you comment