N Ngoc Hue New member Sep 21, 2021 #1 What is the time complexity of the juggling algorithm to rotate an array? A. O(1) B. O C. O(d) D. O(n*d)
What is the time complexity of the juggling algorithm to rotate an array? A. O(1) B. O C. O(d) D. O(n*d)
T Tạ Bích Hạnh Member Sep 21, 2021 #2 Answer: b Explanation: Time complexity of juggling algorithm is O. Its auxiliary space complexity is O(1). Upvote 0 Downvote
Answer: b Explanation: Time complexity of juggling algorithm is O. Its auxiliary space complexity is O(1).