Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed May 8, 2017
1 parent 5b567ed commit 0fb9825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bit/find_missing_number.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def find_missing_number(nums):
"""Returns the missing number from a sorted sequence of integers
in O(n) time and space.
>>> find_missing(i for i in range(-2000, 10000) if i != 1234)
1234
"""
Expand All @@ -18,4 +18,5 @@ def find_missing_number(nums):
if num != 0:
missing ^= num
missing ^= i + 1

return missing

0 comments on commit 0fb9825

Please sign in to comment.