Vidyalelo
Data Structure · Q92

Arrays in Data Structures

Programming · Data Structure · question 92

Q92

How many swaps are required for reversing an array having n elements where n is an odd number?

A.
(n-1) / 2
Answer
B.
n/2
C.
(n/2) - 1
D.
(n+1)/2

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board