Skip to content

Commit 2125343

Browse files
authored
Update longest-increasing-subsequence.py
1 parent 498e85a commit 2125343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/longest-increasing-subsequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def insert(target):
2727
left, right = 0, len(LIS) - 1
2828
# Find the first index "left" which satisfies LIS[left] >= target
2929
while left <= right:
30-
mid = int(left + (right - left) / 2)
30+
mid = left + (right - left) // 2
3131
if LIS[mid] >= target:
3232
right = mid - 1
3333
else:

0 commit comments

Comments
 (0)