You are viewing a single comment's thread. Return to all comments →
Resolucion en java:
int mayor = candles.get(0); int contador = 1;
for(int i=1; i < candles.size(); i++){ int actual = candles.get(i); if(actual > mayor){ mayor = actual; contador = 1; }else if(actual == mayor){ contador++; } } return contador;
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
Resolucion en java:
int mayor = candles.get(0); int contador = 1;