摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both indicate a queen and an empty space respectively. 阅读全文
posted @ 2017-05-13 20:23 JeffNice 阅读(194) 评论(0) 推荐(0)
摘要: Implement pow(x, n). 阅读全文
posted @ 2017-05-13 11:01 JeffNice 阅读(142) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together. 阅读全文
posted @ 2017-05-13 10:33 JeffNice 阅读(178) 评论(0) 推荐(0)