Let 𝐴 be an array containing integer values. The distance of 𝐴 is defined as…
PYQ GATE 2024
Let 𝐴 be an array containing integer values. The distance of 𝐴 is defined as the minimum number of elements in 𝐴 that must be replaced with another integer so that the resulting array is sorted in non-decreasing order. The distance of the array [2, 5, 3, 1, 4, 2, 6] is ___________
Attempted by 138 students.
Sign up free to check your answer
Sign up freeLoading lesson…

