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.
Run your code to see the output here.