Computer Science And Engineering

Computer Science And EngineeringProgramming & Data StructuresNumerical Answer (NAT)1 Mark
Q6.

The pseudocode of a function fun() is given below: image

Let 𝐴[0, … ,29] be an array storing 30 distinct integers in descending order. The number of swap operations that will be performed, if the function fun() is called with 𝐴[0, … ,29] as argument, is __________. (Answer in integer)