Java Coding Problem Second Largest Number in an Array తెలుగులో || Java Interview Problems

  Рет қаралды 1,130

Decoder26

Decoder26

Күн бұрын

Пікірлер: 12
@DecoderP26
@DecoderP26 Жыл бұрын
If you have any questions or any requirements please comment here . I will explain in next video 👍
@dgjsbdbk
@dgjsbdbk 2 ай бұрын
I saw more than 10 videos for this problem but no one explain like u.Superb
@DecoderP26
@DecoderP26 2 ай бұрын
Thanks 😊
@prasaddevathi09
@prasaddevathi09 8 ай бұрын
Thanks for clearing problem in simple way that too in telugu.
@DecoderP26
@DecoderP26 8 ай бұрын
Thanks for watching . Please like and subscribe the channel ❤️
@crazythoughts98
@crazythoughts98 Жыл бұрын
Well understood bro 😊
@DecoderP26
@DecoderP26 Жыл бұрын
Thank you
@sudarshanhegde1118
@sudarshanhegde1118 Жыл бұрын
Sir thank you for explanation. I have a question sir, if the array has duplicate elements, if the highest element is duplicate then both first highest and second highest becomes same right? Ex : 10 40 50 50 30 Here second highest should be 30 but our answer wont it become 50? We may need to add another check in else if to see if array[i] not equal to highest before copying value to seconfHighest variable. Correct me if I am wrong.
@DecoderP26
@DecoderP26 Жыл бұрын
That is pretty good observation . Generally in interviews they wont ask this kind of scenario. If they ask then we can alter the else if condition to avoid that duplicate number . You can add one extra and (&&) condition in the else if statement array[i] != highest . I hope this will give the desired output in this scenario
@shreyasnelgikar1965
@shreyasnelgikar1965 11 ай бұрын
What a wonderful question from Sudarshan this type of question is expected from a brilliant student and as expected what a beautiful answer from our instructor.
@ramamohanreddy2402
@ramamohanreddy2402 Жыл бұрын
Ncie
@DecoderP26
@DecoderP26 Жыл бұрын
Thank you :)
16 - Java program to find Second Largest/Smallest element in an array
14:14
Software Testing And Automation
Рет қаралды 25 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Armstrong number program in Java తెలుగులో
13:18
java in తెలుగు
Рет қаралды 20 М.
Java Program #17 - Sort an Array of Integers in ascending order
7:31
Programming For Beginners
Рет қаралды 86 М.
Java Program to Find the Second Highest Number in an Array
9:26
Programming Tutorials
Рет қаралды 83 М.
MUST KNOW junior role JAVA interview questions
42:15
Keep On Coding
Рет қаралды 143 М.
Java Program #21 - Sort Numbers using Bubble Sort in Java
8:03
Programming For Beginners
Рет қаралды 54 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН