This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Bisection algorithms.""" | |
def insort_right(a, x, lo=0, hi=None, *, key=None): | |
"""Insert item x in list a, and keep it sorted assuming a is sorted. | |
If x is already in a, insert it to the right of the rightmost x. | |
Optional args lo (default 0) and hi (default len(a)) bound the | |
slice of a to be searched. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.