GATE 2024 set2 Computer Science and Information Technology question: Let A be an array containing integer values. The distance of A is defined as the minimum…
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 is ____________
Show answer
Official answer: 3