You are viewing a single comment's thread. Return to all comments →
Easy Solution
public static int chiefHopper(List<Integer> arr) { int E = 0; for (int i = arr.size() - 1; i >= 0; i--){ E = (int) Math.ceil((E + arr.get(i)) / 2.0); } return E; }
Seems like cookies are disabled on this browser, please enable them to open this website
Chief Hopper
You are viewing a single comment's thread. Return to all comments →
Easy Solution