2014年5月7日

N-Queens

摘要: Link:http://oj.leetcode.com/problems/n-queens/Given an integern, return all distinct solutions to then-queens puzzle.Each solution contains a distinct... 阅读全文

posted @ 2014-05-07 23:26 Atlas-Zzz 阅读(123) 评论(0) 推荐(0) 编辑

Sort Colors

摘要: Link:http://oj.leetcode.com/problems/sort-colors/Given an array withnobjects colored red, white or blue, sort them so that objects of the same color a... 阅读全文

posted @ 2014-05-07 10:21 Atlas-Zzz 阅读(127) 评论(0) 推荐(0) 编辑

N-Queens II

摘要: Link:http://oj.leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number ... 阅读全文

posted @ 2014-05-07 09:09 Atlas-Zzz 阅读(164) 评论(0) 推荐(0) 编辑

导航