← ALL NOTES
Array

3423. Maximum Difference Between Adjacent Elements in a Circular Array

Given a circular array nums. Find the maximum absolute difference |nums[i]−nums[j]| between adjacent elements, where neighbors are the ordinary consecutive pairs plus the first and last element…

Loading…