Problem 3423 · Easy

Maximum Difference Between Adjacent Elements in a Circular Array

Check each element against the next one, wrapping from the last back to the first, and keep the largest absolute gap.

Open the interactive visualisation