You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/g1901_2000/s1993_operations_on_tree/readme.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ You are given a tree with `n` nodes numbered from `0` to `n - 1` in the form of
6
6
7
7
The data structure should support the following functions:
8
8
9
-
***Lock:****Locks** the given node for the given user and prevents other users from locking the same node. You may only lock a node using this function if the node is unlocked.
9
+
***Lock:Locks** the given node for the given user and prevents other users from locking the same node. You may only lock a node using this function if the node is unlocked.
10
10
***Unlock: Unlocks** the given node for the given user. You may only unlock a node using this function if it is currently locked by the same user.
11
-
***Upgrade**: **Locks** the given node for the given user and **unlocks** all of its descendants **regardless** of who locked it. You may only upgrade a node if **all** 3 conditions are true:
11
+
***Upgrade: Locks** the given node for the given user and **unlocks** all of its descendants **regardless** of who locked it. You may only upgrade a node if **all** 3 conditions are true:
12
12
* The node is unlocked,
13
13
* It has at least one locked descendant (by **any** user), and
0 commit comments