MCQ1 mark
An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array is given below.
Let denote the length of the longest monotonically increasing sequence starting at index in the array.
Initialize .
For all such that
Finally the length of the longest monotonically increasing sequence is .
Which of the following statements is TRUE?
Single correct
Answer key coming soon