Skip to content

Commit cf42f70

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b194644 commit cf42f70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/6_Advanced/LCT.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class LCT {
298298
if (parent.right != null) parent.right.parent = parent;
299299
child.left = parent;
300300
}
301-
301+
302302
parent.parent = child;
303303
child.parent = grandparent;
304304
}
@@ -366,12 +366,12 @@ public class Main {
366366
String command = sc.next();
367367
int u = sc.nextInt();
368368
int v = sc.nextInt();
369-
369+
370370
if (command.equals("add")) lc.link(u, v);
371371
else if (command.equals("rem")) lc.cut(u, v);
372372
else if (command.equals("conn")) System.out.println(lc.connected(u, v) ? "YES" : "NO");
373373
}
374-
374+
375375
sc.close();
376376
}
377377
}

0 commit comments

Comments
 (0)