Skip to content

Commit 30993ab

Browse files
authored
Update first_bad_version.py
1 parent cad3107 commit 30993ab

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

first_bad_version.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
"""
@@ -16,4 +16,6 @@ def findFirstBadVersion(self, n):
1616
end = mid # 错误范围[start, mid]
1717
else:
1818
start = mid + 1 # 错误在后半部分
19-
return start
19+
return start
20+
21+
# medium: http://lintcode.com/zh-cn/problem/first-bad-version/

0 commit comments

Comments
 (0)