Minimum Height Difference Between Distant Peaks
CodingOASoftware EngineerReported Aug, 2025
Company question banks are included with the Insider plan.
You are given an integer array heights representing the heights of mountain peaks along a ridge (in index order) and an integer gap.
Return the minimum value of |heights[i] - heights[j]|...