← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given an integer array nums and an integer k, find the smallest absolute difference |nums[i] - nums[j]| such that i and j are at least k positions apart (i.e., |i - j| >= k). Return this minimum absolute difference.