Given an unsorted integer array nums, return the length of the longest run of consecutive integers (values that differ by 1), regardless of their order in the array.
Your algorithm must run in O(n) time. Return 0 for an empty array.
[100,4,200,1,3,2][0,3,7,2,5,8,4,6,0,1][][1][9,1,4,7,3,-1,0,5,8,-1,6][1,2,0,1]