1.

Is insertion and deletion operation faster in rope than an array?(a) True(b) FalseThis intriguing question originated from Binary Trees topic in section Binary Trees of Data Structures & Algorithms II got this question in an interview for job.

Answer»

Right choice is (a) True

Best EXPLANATION: In order to PERFORM the insertion on the ROPE data structure, the time complexity is O (log n). In order to perform the deletion on the rope data structure, the time complexity for worst CASE is O (log n). While for ARRAYS the time complexity is O (n).



Discussion

No Comment Found

Related InterviewSolutions