How to find the largest and smallest number in unsorted array?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: Data StructureHow to find the largest and smallest number in unsorted array?
chetan shidling asked 5 years ago

I need short information.

1 Answers
chetan shidling answered 5 years ago

We can do by using any one of the methods:
 

  1. Using Min Heap – HeapSelect
  2. Max-Heap
  3. Quick select