iiitv / algos

Popular Algorithms and Data Structures implemented in popular languages
MIT License
1.07k stars 495 forks source link

Update BinarySearch.java #871

Closed sanvi-05 closed 9 months ago

sanvi-05 commented 9 months ago

Input validation checks for a null input array, and if the input array is null, it throws an IllegalArgumentException with an error message indicating that the input array cannot be null. This ensures that the program handles invalid input cases where the input array is null.

Fixes #{ISSUE_NUMBER}

By submitting this pull request I confirm I've read and complied with the below declarations.

raj-j-shah commented 9 months ago

@sanvi-05 Please refrain from sending pull requests directly. You must first be assigned to a task, after which your pull request will be reviewed and, if approved, merged.