DIY: Longest Consecutive Sequence
Explore how to identify the longest consecutive sequence of integers within an unsorted array. Learn to implement a Ruby function to return the length of the largest consecutive sequence, sharpening your problem-solving skills relevant to coding interviews.
We'll cover the following...
We'll cover the following...
Problem statement
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
Input
The input will be an array of ...