MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / push

Method push

src/class184/Code02_Difficult1.java:61–69  ·  view source on GitHub ↗
(int u, int f, int preColor, int edge, long sum, int e)

Source from the content-addressed store, hash-verified

59 public static int stacksize;
60
61 public static void push(int u, int f, int preColor, int edge, long sum, int e) {
62 stack[stacksize][0] = u;
63 stack[stacksize][1] = f;
64 stack[stacksize][2] = preColor;
65 stack[stacksize][3] = edge;
66 stack[stacksize][4] = e;
67 sumst[stacksize] = sum;
68 stacksize++;
69 }
70
71 public static void pop() {
72 --stacksize;

Callers 2

getSize2Method · 0.95
dfs2Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected