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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
