Write a program to find the second largest number in an array.
EasyProblem Statement
Write a program to find the second largest number in an array.
Sample Input
[10, 5, 8, 12, 7]
Sample Output
10
Limits
Time: 2s · Memory: 256 MB
Write a program to find the second largest number in an array.
[10, 5, 8, 12, 7]
10
Time: 2s · Memory: 256 MB