Question DSA-SRCH-0042
MediumWhat is the output of this code?
import bisect
a = [1, 2, 4, 4, 4, 7, 9]
print(bisect.bisect_left(a, 4), bisect.bisect_right(a, 4), bisect.bisect_left(a, 5))
- A.
3 5 5
- B.
2 5 6
- C.
Sign up free to see the answer and a step-by-step explanation.