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)
AnswerB.
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