No description
Find a file
2023-03-04 23:12:26 -05:00
.github/workflows add initial README 2023-03-04 23:05:11 -05:00
src Fix typo in signature 2020-12-16 22:27:46 -05:00
tests add pre-commit config 2023-03-04 23:12:26 -05:00
.gitignore add initial README 2023-03-04 23:05:11 -05:00
.pre-commit-config.yaml add pre-commit config 2023-03-04 23:12:26 -05:00
bisect.nimble v0.1.1 2020-12-16 22:34:21 -05:00
LICENSE v0.1.1 2020-12-16 22:34:21 -05:00
README.md add initial README 2023-03-04 23:05:11 -05:00

bisect

nimble version nimble code build status nimble doc build status

Bisection algorithms ported from Python

Examples

import bisect

assert bisectLeft([1, 1, 2, 2], 2) == 2
assert bisectRight([1, 1, 2, 2], 2) == 4