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)
My query is from Arrays Types in portion Arrays Types of Data Structures & Algorithms I
I have been asked this question in an international level competition.