Skip to content

Commit 47456c5

Browse files
authored
Merge pull request kodecocodes#881 from vzanshin/patch-2
Fix minor typo at Heap/README
2 parents a0810f3 + 3f1d661 commit 47456c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Heap/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ As a result of this heap property, a max-heap always stores its largest item at
2929
3030
## How does a heap compare to regular trees?
3131

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:
32+
A heap is not a replacement for a binary search tree, and there are similarities and differences between them. Here are some main differences:
3333

3434

3535
**Order of the nodes.** In a [binary search tree (BST)](../Binary%20Search%20Tree/), the left child must be smaller than its parent, and the right child must be greater. This is not true for a heap. In a max-heap both children must be smaller than the parent, while in a min-heap they both must be greater.

0 commit comments

Comments
 (0)