Daily challenge for 2026-05-09
494. Maximum Difference Between Adjacent Elements
Given an array of integers nums, find the maximum absolute difference between any two adjacent elements in the array. If the array has fewer than two elements, return 0.
Example:
Input: nums = [2, 5, 1, 8]
Output: 7
Run this challenge interactively in Python or JavaScript when the app loads.