Commit 99962c86 authored by Ondřej Mička's avatar Ondřej Mička

splay_operation: minor comment change in delete and insert

parent 432269d5
......@@ -97,7 +97,7 @@ class Tree {
}
// Delete given key from the tree.
// It the key is not present, do nothing.
// It the key is not present, nothing happens.
void remove(int key) {
// TODO: Utilize splay suitably.
Node* node = root;
......
......@@ -60,7 +60,7 @@ class Tree:
def insert(self, key):
"""Insert key into the tree.
If the key is already present, do nothing.
If the key is already present, nothing happens.
"""
# TODO: Utilize splay suitably.
if self.root is None:
......@@ -81,7 +81,7 @@ class Tree:
def remove(self, key):
"""Remove given key from the tree.
It the key is not present, do nothing.
It the key is not present, nothing happens.
"""
# TODO: Utilize splay suitably.
node = self.root
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment