When will you sort an array of pointers to list elements,
rather than sorting the elements themselves?

Answer Posted / yenealem

using pointers makes easier data manipulation on data
structuring. Therefore, when one uses array of pointers in
sorting data makes data structuring easier.Furthermore,
When pointers are arranged in array they are easier for
arithmetic operation.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the abstract operations in the set?

531


What is fibonacci search?

609


What is a treemap used for?

484


What is data structure and why we need it?

496


Can you store different types in an array?

472






What is the Difference between sax and dom parser?

573


Why do we need arrays if all the operations that are performed on arrays can be performed on arraylist?

448


Define a set?

567


Can treemap key null?

589


Is treemap thread safe?

515


What is a height of a tree?

490


What is the Difference between treemap and hashmap?

495


Why do we need a data structure?

491


If we add enum constants to a sorted collection ( treemap , treeset ), what will be the order in which they will be maintained?

571


What is binary search tree and explain its time complexity?

518