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

Method undo

src/class165/Code03_Envy1.java:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 public static void undo() {
61 int fx = rollback[opsize][0];
62 int fy = rollback[opsize--][1];
63 father[fy] = fy;
64 siz[fx] -= siz[fy];
65 }
66
67 public static void prepare() {
68 for (int i = 1; i <= n; i++) {

Callers 1

computeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected