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
@@ -64,59 +72,59 @@ public static List<Integer> uniqueIntArrayGenerator(int size) {
64
72
returnresult;
65
73
}
66
74
67
-
// @Notes(context = "I'm assuing only classes in this PACKAGE will call the following two methods, so just leave the modifier as default, i.e. no public, private, or protected.")
// "I'm assuing only classes in this PACKAGE will call the following two methods, so just leave the modifier as default, i.e. no public, private, or protected.")
* int java.util.Arrays.binarySearch(int[] a, int fromIndex, int toIndex, int key)
28
+
29
+
Searches a range of the specified array of ints for the specified value using the binary search algorithm. The range must be sorted (as by the sort(int [], int, int) method) prior to making this call. If it is not sorted, the results are undefined. If the range contains multiple elements with the specified value, there is no guarantee which one will be found.
30
+
31
+
Parameters:
32
+
a the array to be searched
33
+
fromIndex the index of the first element (inclusive) to be searched
34
+
toIndex the index of the last element (exclusive) to be searched
35
+
key the value to be searched for
36
+
37
+
Returns:
38
+
index of the search key, if it is contained in the array within the specified range; otherwise, (-(insertion point) - 1). The insertion point is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or toIndex if all elements in the range are less than the specified key. Note that this guarantees that the return value will be >= 0 if and only if the key is found.*/
0 commit comments