Examveda

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

A. (n-1) / 2

B. n/2

C. (n/2) - 1

D. (n+1)/2

Answer: Option A


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures