In the recurrence relation for the longest non-decreasing contiguous subarray, when the condition is satisfied, the update rule is . What is the minimum possible value of in this case?
C
Step-by-Step Solution
Key idea: This is a direct recall question about the extend case of the recurrence relation.
Step 1: When the condition is true, the recurrence gives .
Step 2: The minimum possible value of any is 1 (the base case). So the minimum value of is 1.
Step 3: Substituting: minimum .
Answer: C (2)