algorithms sum

Solutions on MaxInterview for algorithms sum by the best coders in the world

showing results for - "algorithms sum"
Rafael
08 Sep 2017
1public int sum(List<Integer> numbers) {
2    int sum = 0;
3    for (Integer n: numbers) {
4        sum += n;
5    }
6    return sum;
7}