in subsequnece order matter in which they appear in original array
Subsequence ordere matter
Hey @Mukesh_1
In the question longest consecutive subsequence, you have to find the longest subsequence of the array which has consecutive numbers in it. A subsequence implies a subset of numbers in order, they may not be contiguous(contiguous means that all should be one after the array, like a subarray and we cannot pick elements occuring after some gaps, in a subsequence we can pick), but should in order. So order matters in this question.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.