Fmars Blog
Inner happiness comes from self-sacrifice
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Enter you comment