Skip to content

Commit 0319541

Browse files
authored
Update readme.md
1 parent ff34f97 commit 0319541

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/g1901_2000/s1993_operations_on_tree

1 file changed

+2
-2
lines changed

src/main/java/g1901_2000/s1993_operations_on_tree/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ You are given a tree with `n` nodes numbered from `0` to `n - 1` in the form of
66

77
The data structure should support the following functions:
88

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.
1010
* **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:
1212
* The node is unlocked,
1313
* It has at least one locked descendant (by **any** user), and
1414
* It does not have any locked ancestors.

0 commit comments

Comments
 (0)