You are viewing a single comment's thread. Return to all comments →
public static int birthdayCakeCandles(List candles) { // Write your code here int max = 0; int c =0; for(int i=0;i
} for(int i=0;i<candles.size();i++){ if(max==candles.get(i)) { c++; } } return c; }**
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 →
public static int birthdayCakeCandles(List candles) { // Write your code here int max = 0; int c =0; for(int i=0;i