Program to find nth largest number in an array
Given an unsorted array and find the nth largest number or element. suppose array are contain following element.
Views the all largest element sequence.
Note that it's possible to same largest number are two or more element.
Logic and algorithm.
This algorithm print given largest element. but If two or more element same largest priority then it will print only one. so remove break statement then it will print all element with given laregest element.
Iterative C program to find given largest element.
View execution process.
View all execution process.