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

Method main

src/com/blankj/easy/_0121/Solution.java:23–27  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

maxProfitMethod · 0.95

Tested by

no test coverage detected