Dear sir, I think you are finding longest possible consecutive sequence from the elements in the array(violating the order of elements) and not longest possible consecutive subsequence. From what I know a subsequence can be derived from another sequence by deleting some elements in between without changing the order.But here in the video we are not considering the order of the elements .
Video title is wrong ,it should be longest possible consecutive sequence formed by elements in a given array
yes u are correct. it longest consecutive sequence