Skip to content

Commit c37080b

Browse files
committed
style: format code
1 parent 9d5109a commit c37080b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

solution/1900-1999/1993.Operations on Tree/Solution.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ class LockingTree {
99
children[parent[i]].push_back(i);
1010
}
1111
}
12-
12+
1313
bool lock(int num, int user) {
1414
if (locked[num] == -1) {
1515
locked[num] = user;
1616
return true;
1717
}
1818
return false;
1919
}
20-
20+
2121
bool unlock(int num, int user) {
2222
if (locked[num] == user) {
2323
locked[num] = -1;
2424
return true;
2525
}
2626
return false;
2727
}
28-
28+
2929
bool upgrade(int num, int user) {
3030
int x = num;
3131
while (x != -1) {

solution/1900-1999/1993.Operations on Tree/Solution.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ public LockingTree(int[] parent) {
1414
children[parent[i]].add(i);
1515
}
1616
}
17-
17+
1818
public boolean lock(int num, int user) {
1919
if (locked[num] == -1) {
2020
locked[num] = user;
2121
return true;
2222
}
2323
return false;
2424
}
25-
25+
2626
public boolean unlock(int num, int user) {
2727
if (locked[num] == user) {
2828
locked[num] = -1;
2929
return true;
3030
}
3131
return false;
3232
}
33-
33+
3434
public boolean upgrade(int num, int user) {
3535
int x = num;
3636
while (x != -1) {

0 commit comments

Comments
 (0)