-2
$\begingroup$

i am trying to figure a algorithm problem that determines the two largest number of the a series of random 10 numbers. Thanks to your help.

  • 1
    You said a 'series' not a sequence or a list. Are there any known properties of this series?2010-12-26
  • 1
    If you mean `series`,please state whether we can assume that it have some specific properties,if it is sequence then change the question accordingly.2010-12-26
  • 2
    does the algorithm need to perform in a specific way? Does it need to be < O(n lg n)? If not, just sort it the list and pick the last 2 elements.2010-12-26
  • 0
    @Sev: you're joking, right? Tell me you're joking...2010-12-26
  • 1
    well, considering the form of the question, i was :)2010-12-26

4 Answers 4