Binary search an ordered List<int>

Posted by Ian Quigley on Stack Overflow See other posts from Stack Overflow or by Ian Quigley
Published on 2010-03-16T12:36:54Z Indexed on 2010/03/16 12:46 UTC
Read the original article Hit count: 187

Filed under:
|

Given a List<int> myValues which I know to be ordered, what is the quickest way to determine if X is in the given list?

Do I really have to write my own binary search?

© Stack Overflow or respective owner

Related posts about c#

Related posts about generics