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

What are doubly linked lists?

583


How can you represent a linked list node?

560


How do you find a string is anagram or not?

483


Can arraylist have duplicates?

531


Why do we use arrays?

537






What is a vector class?

497


How do you sort an array in decreasing order?

477


What is data structure explain different types of data structures with examples?

513


What is a data structure? What are the types of data structures?

543


What is the meaning of arraylist?

498


How do you search for a target key in a linked list?

765


What do you mean by shortest path?

549


What is an ordered map?

505


What is difference between treeset hashset linkedhashset?

449


What do you mean by sorting data?

498