Andrey Ivanov | Python
4 года назад
Комментарии:
Great bisect explanation! Small thing: you were correct before with a.sort() b/c that sorts in-place. sorted(a) will return a sorted array but since it isn't being assigned it will have no effect.