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
arr = {5, 3, 8, 1, 4}Sample Output
Second Largest = 5
Limits
Time: 2s · Memory: 256 MB
Write a program to find the second largest number in an array.
arr = {5, 3, 8, 1, 4}Second Largest = 5
Time: 2s · Memory: 256 MB