Second Largest in array #java

preview_player
Показать описание
LIFE CODING WITH JAVA
You have been given a random integer array/list(ARR) of size N. You are required to find and return the second largest element present in the array/list.

Sample Input 1:
1
7
2 13 4 1 3 6 28
Sample Output 1:
13
Sample Input 2:
1
5
9 3 6 2 9
Sample Output 2:
6
Sample Input 3:
2
2
6 6
4
90 8 90 5
Sample Output 3:
-2147483648
8

I try to solve very easy concept So please watch this video .
All java code with easy trick.
By "LIFE CODING WITH JAVA". all program free no any cost So please like ,subscribe, share and comment.
If you any doubt related to any video then comment me. As soon as I will help you .
my contact number: 6206472735
Рекомендации по теме
Комментарии
Автор

brother really ur explanations are very very very impressive.

Dhrub
Автор

brother one doubt why u put integer .min _value in secondlargestelement? please bro clear my doubt

Dhrub
visit shbcf.ru