Define a streak as a subarray of consecutive elements whose elements are sorted in ascending order. If
Fantastic news! We've Found the answer you've been seeking!
Question:
Define a "streak" as a subarray of consecutive elements whose elements are sorted in ascending order. If an array has n (non-overlapping) streaks, what must be true of the data?
A The data is sorted in ascending order
B The data is sorted in descending order
C The data consist of two sorted lists each of length n/2
D The data is in a random order
Posted Date: