If you have any questions or any requirements please comment here . I will explain in next video 👍
@dgjsbdbk2 ай бұрын
I saw more than 10 videos for this problem but no one explain like u.Superb
@DecoderP262 ай бұрын
Thanks 😊
@prasaddevathi098 ай бұрын
Thanks for clearing problem in simple way that too in telugu.
@DecoderP268 ай бұрын
Thanks for watching . Please like and subscribe the channel ❤️
@crazythoughts98 Жыл бұрын
Well understood bro 😊
@DecoderP26 Жыл бұрын
Thank you
@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 Жыл бұрын
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
@shreyasnelgikar196511 ай бұрын
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.