#3423

Maximum Difference Between Adjacent Elements in a Circular Array

easy · 75.7% accepted · 332 likes · top 87%

array

Description

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.

Solution