3423. Maximum Difference Between Adjacent Elements in a Circular Array
Given a circular array
nums, find the maximum absolute difference between adjacent elements.Note: In a circular array, the first and last elements are adjacent.
1 | package main |
3423. Maximum Difference Between Adjacent Elements in a Circular Array
Given a circular array
nums, find the maximum absolute difference between adjacent elements.Note: In a circular array, the first and last elements are adjacent.
1 | package main |