there is an array containing elements from 1 to 10 and any of the element can be repeated you have to find the index of the largest elememt. if there is more than 2 similar largest elements then show the smallest index of those elements. like [2,2,1,0,0] the you will print 0.
Aucun commentaire:
Enregistrer un commentaire