Eight Queen Problem
This idea is from https://www.cnblogs.com/bigmoyan/p/4521683.html. It greatly reduces the space complexity compare to any 2D array solution.
1 | public class EightQueen { |
Eight Queen Problem
This idea is from https://www.cnblogs.com/bigmoyan/p/4521683.html. It greatly reduces the space complexity compare to any 2D array solution.
1 | public class EightQueen { |