Eight Queen

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.

Leave a Reply