摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Write 阅读全文
posted @ 2017-02-22 18:05 Tsunami_lj 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-22 15:03 Tsunami_lj 阅读(199) 评论(0) 推荐(0) 编辑