Subarrays
A subarray is a sequence of consecutive components that forms a part of a larger array.
Notation: let a[l…r] be the subarray consisting of components a[l], …, a[r].
- Subarray notation is used here, but not supported by Java.
- Length of subarray a[l…r] is r – l + 1.