You may change any three elements of an integer array to any values. What is the smallest possible difference between the largest and smallest element afterwards?
Unlock detailed company stats for this questionUpgrade
Given an array of integers, you may change the value of any three elements to any values you like. What is the smallest possible difference between the largest and the smallest element afterwards?
Community answers
No answers contributed by the community yet.
Related questions
Given a sorted array of distinct positive integers and m, choose m elements so that the smallest gap between any two chosen elements is as large as possible, and return that gap.Each element of an array of non-negative integers may be lowered to any smaller non-negative value. What is the largest MEX the array can reach?Given an array of integers and a number N, find the length of the longest contiguous subarray such that the difference between any two elements in the subarray is less than N.Related courses

Course
