Which of the following algorithm to rotate an array has the maximum time complexity?

Q & ACategory: Data StructureWhich of the following algorithm to rotate an array has the maximum time complexity?
Admin Staff asked 4 years ago

Which of the following algorithm to rotate an array has the maximum time complexity?
a) rotate elements one by one
b) juggling algorithm
c) reversal algorithm
d) using a temporary array

1 Answers
Admin Staff answered 4 years ago

a) rotate elements one by one