When will you sort an array of pointers to list elements,
rather than sorting the elements themselves?
Answer Posted / kumar gaurav
if the data structure is too large,and the pointers refer to
many data then if we sort pointers then,we can easily know
where to start at,it will be very beneficial,and sorting the
elements will take a much longer time,so sorting off
elements is not beneficial
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is array and its types?
Define in brief an array. What are the types of array operations?
What is homogeneous array?
For which header list, the last node contains the null pointer?
Explain the steps to insert data into a singly linked list?
Who invented data structure?
What are the 4 types of data?
What is meant by int?
What is complexity of bubble sort?
What is lifo?
Define parent node?
Which is the best book for data structures and algorithms?
Define avl tree?
Why is an array homogeneous?
What is the prerequisite for binary searching?