← Amazon questions

Largest subset with absolute difference >= y

Filed under Amazon

Given an array of integers and a constant y, find the length of the largest subset where the absolute difference between any two elements is at least y.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.