You are given an integer array nums.
A prefix of nums is called sequential if each element in the prefix, starting from index nums[0..k] is sequential if nums[i] = nums[i - 1] + 1 for all
Find the sum of the longest sequential prefix of nums. Let this sum be
Return the smallest integer nums.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
A prefix of nums is called sequential if each element in the prefix, starting from index nums[0..k] is sequential if nums[i] = nums[i - 1] + 1 for all
Find the sum of the longest sequential prefix of nums. Let this sum be
Return the smallest integer nums.
Constraints:
nums.length
nums[i]