0
How to make a function that takes a sorted list of integers and returns index of a given number by using binary search?
for instance, func([1,4,6,3,42,7,80,42]) should return [ 4, 7] which means indexes of 42.
2 Respostas
+ 1
I think you mean https://www.sololearn.com/learn/705/?ref=app
0
what if I have 2 similar items. I want the index output to be in a list.