Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Algorithms - Max value

public int max(List<Integer> numbers) {
    int max = Integer.MIN_VALUE;
    for (Integer n: numbers) {
        if (n > max) {
            max = n;
        }
    }
    return max;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Algorithms #Max
ADD COMMENT
Topic
Name
2+4 =