Home / MCQ Bank / Computer
Computer Arrays In Data Structures

Under what condition the number of inversions in an array are maximum?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • when the array is reverse sorted

Related Computer Questions

What is the value of the expression 8 < 6 ? 4 : 2 in Java? Numbers prefixed with '0x' are in base ______ In a Binary Search Tree, what is the term for the node that has no children? You can edit a cell by Which is a more efficient code snippet ? Code 1 : for(var num = 10 ;num >= 1 ;num -- ) { document . writeln ( num ) ; } Code 2 : var num = 10 ; while( num >= 1 ) { document . writeln ( num ) ; num ++ ; }