mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-10 06:10:33 +08:00
Enable ruff E741 rule (#11370)
* Enable ruff E741 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -7,14 +7,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def ceil_index(v, l, r, key):
|
||||
while r - l > 1:
|
||||
m = (l + r) // 2
|
||||
if v[m] >= key:
|
||||
r = m
|
||||
def ceil_index(v, left, right, key):
|
||||
while right - left > 1:
|
||||
middle = (left + right) // 2
|
||||
if v[middle] >= key:
|
||||
right = middle
|
||||
else:
|
||||
l = m
|
||||
return r
|
||||
left = middle
|
||||
return right
|
||||
|
||||
|
||||
def longest_increasing_subsequence_length(v: list[int]) -> int:
|
||||
|
Reference in New Issue
Block a user