+ 1
I want code to find the second largest number in unsorted array
The array is unsorted and I want to find largest number and then second largest number
1 Antwort
+ 3
There are many ways to do that. One such way is:
1) Define a temporary array and fill it with your array's elements.
2) Sort the temporary array in descending order and print the second element.