down vote You can, this is the pseudo algorithm:
max = 2max = SMALLEST_INT_VALUE; for element in v: if element > max: 2max = max; max = element; else if element > 2max: 2max = element; 2max is the value you are looking for. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.