Sequential (Linear) Search in C#: IndexOf and a Generic Version
Find a value in an unsorted array or list in C# with IndexOf, FindIndex or your own generic linear search, and why the old sentinel trick is a bug.
Find a value in an unsorted array or list in C# with IndexOf, FindIndex or your own generic linear search, and why the old sentinel trick is a bug.
Search a sorted array in C# with Array.BinarySearch, understand its negative return value, and write your own iterative or recursive binary search.