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: Heap/README.markdown
+1-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ As a result of this heap property, a max-heap always stores its largest item at
27
27
28
28
> **Note:** The root of the heap has the maximum or minimum element, but the sort order of other elements are not predictable. For example, the maximum element is always at index 0 in a max-heap, but the minimum element isn’t necessarily the last one. -- the only guarantee you have is that it is one of the leaf nodes, but not which one.
29
29
30
-
## How does a heap can be compared to regular trees?
30
+
## How does a heap compare to regular trees?
31
31
32
32
A heap is not a replacement for a binary search tree, and there are similarities and differnces between them. Here are some main differences:
0 commit comments