MCPcopy Create free account
hub / github.com/Blankj/awesome-java-leetcode / main

Method main

src/com/blankj/easy/_0122/Solution.java:21–25  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

19 }
20
21 public static void main(String[] args) {
22 Solution solution = new Solution();
23 System.out.println(solution.maxProfit(new int[]{7, 1, 5, 3, 6, 4}));
24 System.out.println(solution.maxProfit(new int[]{7, 6, 4, 3, 1}));
25 }
26}

Callers

nothing calls this directly

Calls 1

maxProfitMethod · 0.95

Tested by

no test coverage detected