✅ Binary Search
No matter what I input the binary search always returns a value of -1 , even if the number is within the array.
4 Replies
$debug
Tutorial: Debug C# code and inspect data - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
The importance of learning how to use the debugger is vital.
i figured out that the binary search wouldnt work as the last sorting algorithmn would always be descending and so it wouldnt be able to search