You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
java.lang.ArrayIndexOutOfBoundsException with BinarySearch
To Reproduce
Any case with the key is bigger than the biggest number of the array should reproduce the java.lang.ArrayIndexOutOfBoundsException (while should return -1 instead)
Example: search for 20 in [-10, -4, 2, 5, 9, 15]
Expected behavior
java.lang.ArrayIndexOutOfBoundsException was thrown
Screenshots
Device Specification
The text was updated successfully, but these errors were encountered:
Describe the bug
java.lang.ArrayIndexOutOfBoundsException with BinarySearch
To Reproduce
Any case with the key is bigger than the biggest number of the array should reproduce the java.lang.ArrayIndexOutOfBoundsException (while should return -1 instead)
Example: search for 20 in [-10, -4, 2, 5, 9, 15]
Expected behavior
java.lang.ArrayIndexOutOfBoundsException was thrown
Screenshots

Device Specification
The text was updated successfully, but these errors were encountered: