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

Method undo

src/class174/Code05_Lcm1.java:102–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 public static void undo() {
103 for (int fx, fy; opsize > 0; opsize--) {
104 fx = rollback[opsize][0];
105 fy = rollback[opsize][1];
106 fa[fy] = fy;
107 siz[fx] = rollback[opsize][2];
108 maxa[fx] = rollback[opsize][3];
109 maxb[fx] = rollback[opsize][4];
110 }
111 }
112
113 public static boolean check(int x, int y, int a, int b) {
114 int fx = find(x);

Callers 1

computeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected