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

Ngoc Hue

New member
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)
 

Tìm kiếm

Back
Top