Skip to content

Commit

Permalink
Update first-missing-positive.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 committed Feb 3, 2015
1 parent d5b052b commit 6281b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/first-missing-positive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Time: O(n)
# Space: O(n)
# Space: O(1)
#
# Given an unsorted integer array, find the first missing positive integer.
#
Expand Down Expand Up @@ -28,4 +28,4 @@ def firstMissingPositive(self, A):

if __name__ == "__main__":
print Solution().firstMissingPositive([1,2,0])
print Solution().firstMissingPositive([3,4,-1,1])
print Solution().firstMissingPositive([3,4,-1,1])

0 comments on commit 6281b00

Please sign in to comment.