how to find 2nd largest array if array values like{10,20,92,81,92,34}
anjijava16
0
Newbie Poster
Recommended Answers
Jump to Postsk8ergirl: don't spoonfeed, just explain the possible algorithms to go through.
anjijava16: either sort the array and take the element with the second highest index, or iterate over the array for each element (if you really are not allowed to sort the array, which I doubt) until you've found an …
All 3 Replies
sk8ergirl
0
Newbie Poster
kal_crazy
commented:
Don't give answers. Help them if they attempt the question themselves.
+0
anjijava16
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.