1533. Find the Index of the Large Integer
You are given an opaque ArrayReader for an integer array in which every value is equal except for exactly one value that is strictly larger than all the others. Return the index of that larger value. The array itself must not be read directly.
In the original LeetCode problem the array is hidden behind an interactive ArrayReader. The reader exposes length() and compareSub(l, r, x, y), which compares the sum of arr[l..r] with the sum of arr[x..y] and returns 1, 0, or -1 for greater than, equal, or less than. At most 20 calls to compareSub are allowed, and both reader methods run in O(1) time.
The current functional schema cannot express the opaque reader or its methods. Therefore this problem requires central reader instrumentation before it can be accepted. A direct array adapter or a scan of array values changes the information model and is not a compliant implementation. The reader-facing contract must expose only length() and compareSub(l, r, x, y), and the harness must enforce at most 20 calls.
1533. Find the Index of the Large Integer
You are given an opaque `ArrayReader` for an integer array in which every value is equal except for exactly one value that is strictly larger than all the others. Return the index of that larger value. The array itself must not be read directly.