← Amazon questions

Min elements to remove for max <= 2 * min

Filed under Amazon

Given an integer array, find the minimum number of elements to remove such that in the remaining array, the maximum element is less than or equal to twice the minimum element (max <= 2 * min).

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.