When will you sort an array of pointers to list elements,
rather than sorting the elements themselves?
Answer Posted / pavan
If the Data structures that we are sorting are big and
located at different places then I prefer sorting pointers
rather than data itself
| Is This Answer Correct ? | 39 Yes | 4 No |
Post New Answer View All Answers
What does a treemap do?
Name few concurrent collection classes?
What is the time complexity of selection sort?
Explain quick sort?
an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
Which sorting algorithm is best for large data?
Is hashmap a data structure?
where do you use double linked list?
What are different techniques for making hash function? Explain with example.
What is array sort?
If I try to add enum constants to a treeset, what sorting order will it use?
What is sorting and its types?
how to add an item to the beginning of the list?
Given an array of integers, devise a program to replace every element with the next greatest element on the right side in the array. Also, replace the last element with 5 as there no element on the right side of it.
What do you mean by heap order property?