Tap here to switch tabs
Problem
Submissions

Problem: Max Difference Between Adjacent Circular Array Elements

med
30 min
Try to solve the Maximum Difference Between Adjacent Elements in a Circular Array problem.

Statement

Given a circular array of integers nums, return the maximum absolute difference between any two adjacent elements.

Note: In a circular array, the first element and the last element are considered adjacent.

Constraints:

  • 2≤2 \leq nums.length ≤100\leq 100

  • −100≤-100 \leq nums[i] ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Max Difference Between Adjacent Circular Array Elements

med
30 min
Try to solve the Maximum Difference Between Adjacent Elements in a Circular Array problem.

Statement

Given a circular array of integers nums, return the maximum absolute difference between any two adjacent elements.

Note: In a circular array, the first element and the last element are considered adjacent.

Constraints:

  • 2≤2 \leq nums.length ≤100\leq 100

  • −100≤-100 \leq nums[i] ≤100\leq 100