BinarySearch.Find C# (CSharp) Method

Find() public static method

public static Find ( Array input, int value ) : int
input Array
value int
return int
    public static int Find(int[] input, int value)
    {
        throw new NotImplementedException("You need to implement this function.");
    }
}

Usage Example

Example #1
0
    public void A_value_smaller_than_the_arrays_smallest_value_is_not_included()
    {
        var array = new[] { 1, 3, 4, 6, 8, 9, 11 };
        var value = 0;

        Assert.Equal(-1, BinarySearch.Find(array, value));
    }
All Usage Examples Of BinarySearch::Find
BinarySearch