Find 3 smallest values in array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anwar7517525
    New Member
    • Dec 2007
    • 3

    Find 3 smallest values in array

    Dearest how can i find three smallest values in array
    I solve it by sorting array in ASC Order then i print first three values but i want to another efficient way can you have any efficient way
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Probably depends on your sorting algorithm. What are you using right now?

    Comment

    Working...