Connect with a global community of knowledgeable individuals on IDNLearn.com. Our Q&A platform offers detailed and trustworthy answers to ensure you have the information you need.

Given an array of distinct positive integers. Which of the following can be used to find the longest consecutive sub-sequence of integers? (Note that the consecutive numbers need not be sorted.)
For example, if the given array is [1 , 7, 3, 2, 8], the longest consecutive subsequence is [1 , 3, 2] as 1 , 2,3 are consecutive integers.