3 ms·
The result of a binary search is undefined if the input is not sorted. How do you expect the compiler to statically guarantee that this property holds in all t
by mgaunard 2y ago
The result of a binary search is undefined if the input is not sorted.
How do you expect the compiler to statically guarantee that this property holds in all the cases you want to do a binary search?