Given a set of numbers, find the longest subset of consecutive numbers.Example:Input:1 3 8 14 4 10 2 11Output:1 2 3 4
Please watch the video for explanation.
Like IDeserve?Support us by whitelisting IDeserve in your ad-blocker.Thanks,-Team IDeserve
Sincere thanks from IDeserve community to Virendra Karappa for compiling current post.