GeeksforGeeks » C/C++ Programming Questions

Efficient program to find 2nd largest

(2 posts)

Tags:

No tags yet.

  1. mario
    Member
    Posted 1 year ago #

    How can we find the 2nd largest element in an unsorted array without ever using sorting algorithms. The array also contains repeated elements.
    Any thoughts??
    Tks..

  2. Venki
    Moderator
    Posted 1 year ago #

    The following post will be helpful.

    http://geeksforgeeks.org/?p=4184

    Change the comparison operators to address the question. There are different ways. Explore on Net.


Reply

You must log in to post.

RSS feed for this topic