+1 vote
in Data Structures & Algorithms I by (110k points)
Reversal algorithm and juggling algorithm for array rotation have the same time complexity.

(a) True

(b) False

I would like to ask this question from Arrays Types in section Arrays Types of Data Structures & Algorithms I

This question was posed to me in semester exam.

1 Answer

+1 vote
by (408k points)
selected by
Best answer
The correct choice is (a) True

The best explanation: Time complexity of juggling algorithm is O(n) which like that of reversal algorithm. They also have the same space complexity.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.