Find minimum difference to next smaller number
Filed under Curefit
The question
Given an array, find the minimum difference between a number and the next smaller number to its right.
No write-up yet. Related questions below have one.
Related Curefit questions
Collected from public candidate posts and coding forums. Updated Nov 2026.