- 博客(2)
- 收藏
- 关注
原创 N-Queens
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. Eac
2014-09-12 10:54:59 588
原创 First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constan
2014-09-09 10:27:54 530
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人