Which of the following is also known as Rope data structure?

Category: QuestionsWhich of the following is also known as Rope data structure?
Editor">Editor Staff asked 1 month ago

Which of the following is also known as Rope data structure?
 
(a) Cord
 
(b) String
 
(c) Array
 
(d) Linked List
 
My enquiry is from Binary Trees in chapter Binary Trees of Data Structures & Algorithms I
 
The question was posed to me during a job interview.

1 Answers
Editor">Editor Staff answered 1 month ago

Correct answer is (a) Cord
 
Easy explanation – Array is a linear data structure. Strings are a collection and sequence of codes, alphabets or characters. Linked List is a linear data structure having a node containing data input and the address of the next node. The cord is also known as the rope data structure.