What is the time complexity of the juggling algorithm to rotate an array?

Q & ACategory: Data StructureWhat is the time complexity of the juggling algorithm to rotate an array?
Admin Staff asked 4 years ago

What is the time complexity of the juggling algorithm to rotate an array?
a) O(1)
b) O(n)
c) O(d)
d) O(n*d)

1 Answers
Admin Staff answered 4 years ago

b) O(n)