You are viewing a single comment's thread. Return to all comments →
java solution
public static int simpleArraySum(List<Integer> ar) { return ar.stream().reduce(0, Integer::sum); }
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
java solution