What would you like to share?
The current BinarySearch implementation does not explicitly handle certain edge cases such as null input arrays or null search values.
Suggested improvements:
- Add null check for the input array
- Handle empty array case
- Add null check for the search value to prevent potential NullPointerException
This will improve robustness and ensure safer usage of the algorithm.
I would like to work on this issue and submit a PR.
Additional information
No response