MCPcopy Create free account
hub / github.com/CCCshengjiang/algorithm / Program

Class Program

data-structure-algorithm/src/cn/cwblue/greedy/IPO.java:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 */
17public class IPO {
18 public static class Program {
19 public int cost;
20 public int profits;
21 public Program(int cost, int profits) {
22 this.cost = cost;
23 this.profits = profits;
24 }
25 }
26
27 public static int findMaximizedCapital(int k, int w, int[] costs, int[] profits) {
28 PriorityQueue<Program> minCostQueue = new PriorityQueue<>(new MinCostComparator());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected