Skip to content Skip to sidebar Skip to footer
Showing posts with the label Binary Search

Why Does Numpy Silently Convert My Int Array To Strings When Calling Searchsorted?

I found a nasty bug in my code where I forgot to convert an integer from str to int before looking … Read more Why Does Numpy Silently Convert My Int Array To Strings When Calling Searchsorted?

Function That Returns The Last Met Of Each Numbers In A Sorted Array

I wrote a function that returns the first met of each numbers from 0 to 9 array = [0,0,1,1,2,2,3,3,… Read more Function That Returns The Last Met Of Each Numbers In A Sorted Array