I am not able to undestand the correct meaning of consecutive subsequence

for eg:-
if arrary is a[ ] ={ 10, 4,20, 1 ,3 , 3, 2 , 2, 19} ;
why sir said {4,1,3,2} is consecutive subarray and {10,4} is not ??

hello @anshulgurawalia

in the problem by consecutive subsequnce means the elements in subsequence must be consecutive to each other.

for example here->
{4,1,3,2} here all elements are consecutive becuase ->{1,2,3,4}

but here {10,4} elements are not consecutive {4,10} there is difference of 6 ?

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.