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


Please Help Members By Posting Answers For Below Questions

How do you find the index of an element in an arraylist?

441


Does arraylist guarantee insertion order?

505


Which is better merge sort or quick sort?

478


Define linked lists?

515


Can you have an arraylist of arrays?

520






What is the best data structure and algorithm to implement cache?

528


Which is faster arraylist or hashmap?

540


Is unordered_map a hash table?

481


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

545


What are the advantage of collection classes over arrays?

531


What are all the classes and interfaces that are available in the collections?

508


Design a datastructure to represent the movement of a knight on a chess board

561


What things you would care about to improve the performance of application if its identified that its db communication that needs to be improved?

537


What is the difference between collection and collections?

545


What is 2 dimensional linked list?

596