My Blog List

[Leetcode Solution]First Missing Positive

Analysis 

  • Iterate elements in the array. Put each element at the corresponding position just like bucket sort
  • Then check which positive integer is missing

Note

Code


No comments:

Post a Comment

Enter you comment