bisect_left vs. bisect_right
-
bisect_left
gives the lowest index where the element should be inserted -
bisect_right
gives the largest index, where the element should be inserted -
bisect_left
==bisect_right
when the element is not present
bisect_left
gives the lowest index where the element should be inserted
bisect_right
gives the largest index, where the element should be inserted
bisect_left
== bisect_right
when the element is not present