摘要: 找到第一丢失的正整数思想:用负号映射位置 1 class Solution { 2 public: 3 int firstMissingPositive(vector& nums) { 4 int length = nums.size(); 5 for(int... 阅读全文
posted @ 2015-05-04 20:36 醉剑客 阅读(157) 评论(0) 推荐(0) 编辑