employer cover photo
employer logo

Question d’entretien chez VMware

Find the 2 largest number from an unsorted array

Réponse à la question d'entretien

Utilisateur anonyme

18 déc. 2019

I used a list to store the result digits, and pop out the first largest and then the second largest. So my solution was taking more time and space, but the same can be efficiently done using 2 normal variables and one for loop.