Given an unsorted array `nums`, return the length of the longest run of consecutive integers (values differing by 1), in O(n) time.