GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set2

GATE 2024 set2 · CS · NAT · 1 mark · Algorithms › Dynamic Programming

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

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion