Finding Second largest number in Array - Tamil | Java | DinaTechy

Publicado el: 23 agosto 2024
en el canal de: DinaTechy
2,166
40

Here is a video about Finding Second largest number in array.

1. First we need two variable called largest and second-largest. As next step, we need to use for-each loop to get the elements one by one.
2. Then as first condition is check whether value from the array is greater than largest.
3. If it is store the largest value into second-largest and value from the array into largest.
4. If not check another condition as value from the array is greater than second-largest and not equal to largest.
5. If this condition is true, store the value from the array into second-largest, is this if the second-largest value is value of last before(that is array.length-2 location).
6. It that condition also false do nothing, continue to next iteration.

Thanks for watching the video Guys.
Like and Share Guys.
Subscribe and Support Guys.


En esta página del sitio puede ver el video en línea Finding Second largest number in Array - Tamil | Java | DinaTechy de Duración hora minuto segunda en buena calidad , que subió el usuario DinaTechy 23 agosto 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,166 veces y le gustó 40 a los espectadores. Disfruta viendo!