halfrost / LeetCode-Go

✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
https://books.halfrost.com/leetcode
MIT License
32.76k stars 5.68k forks source link

Add solution for N-Queen problem which uses bit-operation #142

Closed hanlins closed 3 years ago

hanlins commented 3 years ago

Still uses DFS, optimized for state compression.

Signed-off-by: Hanlin Shi shihanlin9@gmail.com

codecov-commenter commented 3 years ago

Codecov Report

Merging #142 (cff768e) into master (ad3dfff) will decrease coverage by 0.14%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
- Coverage   72.04%   71.90%   -0.15%     
==========================================
  Files         692      692              
  Lines       12142    12166      +24     
==========================================
  Hits         8748     8748              
- Misses       3085     3109      +24     
  Partials      309      309              
Impacted Files Coverage Δ
leetcode/0051.N-Queens/51. N-Queens.go 51.02% <0.00%> (-48.98%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ad3dfff...cff768e. Read the comment docs.