โ† PayU questions

Remove minimum elements such that 2*min > max

Filed under PayU

The question

Given an unsorted array, find the minimum number of elements that must be removed from either side so that twice the minimum element is strictly greater than the maximum element in the remaining subarray.

No write-up yet. Related questions below have one.

Related PayU questions

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