MCPcopy Create free account
hub / github.com/codereport/Content / solve

Method solve

Talks/2019-05-CppNow/AlgorithmIntuition/Slide-049.java:1–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1public static int solve() {
2    List<Integer> l = Arrays.asList( 2, 1, 5, 3, 4 );
3    int a = Collections.min(l);
4    int b = Collections.max(l);
5    return b - a;
6}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected