摘要: Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. 1 public class Solution { ... 阅读全文
posted @ 2015-01-23 22:05 birdhack 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc... 阅读全文
posted @ 2015-01-23 00:20 birdhack 阅读(106) 评论(0) 推荐(0) 编辑