Write longest_consecutive(nums) returning the length of the longest run of consecutive integers (in any order): [100, 4, 200, 1, 3, 2] → 4.
longest_consecutive([100, 4, 200, 1, 3, 2]) → 4
longest_consecutive([]) → 0
Submit runs 5 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.