Given an unsorted integer array,find missing postive 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 users constant space. 分析如下: 首先,要理解题解: 如果输入是{1,2,3,5},输出是4. 如果输入是{1,2,3,4},输入是5. 如果输入…