algorithms max value

Solutions on MaxInterview for algorithms max value by the best coders in the world

showing results for - "algorithms max value"
Evann
14 Sep 2018
1public int max(List<Integer> numbers) {
2    int max = Integer.MIN_VALUE;
3    for (Integer n: numbers) {
4        if (n > max) {
5            max = n;
6        }
7    }
8    return max;
9}
similar questions
queries leading to this page
algorithms max value