I am new to Dynamic Programming and was reading on the Longest Increasing Subsequence(LIS) problem.
The solution stated that the sequence need not be continuous as in the original array. Elements can be skipped in between; but I was under another impression.
Could you please help clarify this confusion.
Say for example:
a = {10,22,9,33,55,66,12,90}
the LIS is {10,22,33,55,66,90} => 6
However, I thought it would be {33,55,66}
Thanks