diff --git a/01_introduction_to_algorithms/csharp/01_binary_search/Program.cs b/01_introduction_to_algorithms/csharp/01_binary_search/Program.cs index 97107a44..65bf0132 100644 --- a/01_introduction_to_algorithms/csharp/01_binary_search/Program.cs +++ b/01_introduction_to_algorithms/csharp/01_binary_search/Program.cs @@ -16,7 +16,7 @@ public static void Main(string[] args) private static int? BinarySearch(IList list, int item) { var low = 0; - var high = list.Count() - 1; + var high = list.Count - 1; while (low <= high) {