Arrays questions

Q35

GATE CS 2024 CS-2Linear Data StructuresNAT1 mark
Let AA be an array containing integer values. The distance of AA is defined as the minimum number of elements in AA 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][2, 5, 3, 1, 4, 2, 6] is ___________
Show answer without attempting

Answer: 3

0/10 correct0 marks

Related topics in Linear Data Structures