remove the average case

This commit is contained in:
Jidong Xiao
2023-11-21 13:43:28 -05:00
parent 4f81197ff3
commit d2acd27fd6

View File

@@ -68,7 +68,7 @@ pop
- Both percolate_down and percolate_up are O(log n) in the worst-case. Why?
- But, percolate_up (and as a result push) is O(1) in the average case. Why?
<!-- - But, percolate_up (and as a result push) is O(1) in the average case. Why? -->
## 23.5 Implementing a Heap with a Vector (instead of Nodes & Pointers)