Examveda

What will be the auxiliary space complexity of the code to rotate an array by using the reversal algorithm (d = number of rotations)?

A. O(1)

B. O(n)

C. O(d)

D. O(n*d)

Answer: Option A


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

Join The Discussion

Related Questions on Arrays in Data Structures