摘要:
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 constant space.技巧性比较强:参考: http://blog.unieagle.net/2012/09/20/leetcode%E9%A2%98%E7%9B%AE%EF%BC%9Afirst-missing-positive/ 阅读全文
posted @ 2013-05-24 23:36
冰点猎手
阅读(152)
评论(0)
推荐(0)