Skip to content

Commit 4cd3f7d

Browse files
authored
Rephrase for increased clarity
1 parent 6bb28b7 commit 4cd3f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

[2018] Python Heaps-ters/python-heaps-ters.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@
12791279
"\n",
12801280
"- For a deletion, remove the root and replace it with the *last* element in the tree.\n",
12811281
"- This may violate the heap invariant...\n",
1282-
"- ... so we compare the minimum of its two children:\n",
1282+
"- ... so we compare the new root with the smallest of its two children:\n",
12831283
" 1. If it's $\\gt$ than the (smallest) children, swap them.\n",
12841284
" 2. Keep percolating down until the invariant is restablished.\n",
12851285
" \n",

0 commit comments

Comments
 (0)