fastest way to determine if an element is in a sorted array

后端 未结 5 1357
长情又很酷
长情又很酷 2021-01-05 06:42

I have an array of sorted ints with a 1,000 or more values (could be up to 5000+). I need to write a function that receives an int and returns a bool based on the element be

5条回答
提交回复
热议问题