You are viewing a single comment's thread. Return to all comments →
public static int birthdayCakeCandles(List candles) {
Collections.sort(candles,Collections.reverseOrder()); int before=candles.size(); candles.removeAll(Collections.singleton(candles.get(0))); return before-candles.size(); }
}
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) {
}