
nums 순회function maxAdjacentDistance(nums: number[]): number {
const n = nums.length
let maxDist = 0
for(let i = 0; i < n; i++) {
const cur = nums[i]
const next = nums[(i + 1) % n]
const curDist = Math.abs(cur - next)
maxDist = Math.max(maxDist, curDist)
}
return maxDist
};