You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// AC: Runtime: 3 ms, faster than 76.56% of Java online submissions for First Missing Positive.
// Memory Usage: 100.8 MB, less than 25.90% of Java online submissions for First Missing Positive.
// swap nums[nums[i] - 1] & nums[i], to let every position nums[index] = index + 1, after doing this, check the first nums[index] != index + 1, return index + 1;