Vidyalelo
Data Structure · Q94

Arrays in Data Structures

Programming · Data Structure · question 94

Q94

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)
Answer
B.
O(n)
C.
O(d)
D.
O(n*d)

Answer: Option A

Solution

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