Find the minimum removals so the largest element is at most twice the smallest.
Unlock detailed company stats for this questionUpgrade
Given an array of elements (n up to 10^5), you can perform two operations: remove an element, or change an element to any integer. Return the minimum number of removals such that the largest element is at most twice the smallest.
Community answers
No answers contributed by the community yet.
Related questions
Find the k-th smallest and k-th largest element in a binary search tree (BST).Find the K'th smallest element in an array.Find the Kth largest element.Related courses

Course

Course
Course
