Skip to content

Commit f81304b

Browse files
committed
Fixed some typos
1 parent 2f9e9d5 commit f81304b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

B-Tree/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A B-Tree is a self-balancing search tree, in which nodes can have more than two
77
A B-Tree of order *n* satisfies the following properties:
88
- Every node has at most *2n* keys.
99
- Every node (except root) has at least *n* keys.
10-
- Eyery non-leaf node with *k* keys has *k+1* children.
10+
- Every non-leaf node with *k* keys has *k+1* children.
1111
- The keys in all nodes are sorted in increasing order.
1212
- The subtree between two keys *k* and *l* of a non-leaf node contains all the keys between *k* and *l*.
1313
- All leaves appear at the same level.
@@ -47,10 +47,10 @@ This is necessary because nodes have to know the order of the tree.
4747
or reach the end of the array.
4848
3. If `k == l` then we have found the key.
4949
4. If `k < l`:
50-
- If the node we are on is not a leaf, then we go to the left child of `l`, and perform the steps 3.-5. again.
50+
- If the node we are on is not a leaf, then we go to the left child of `l`, and perform the steps 3 - 5 again.
5151
- If we are on a leaf, then `k` is not in the tree.
5252
5. If we have reached the end of the array:
53-
- If we are on a non-leaf node, then we go to the last child of the node, and perform the steps 3.-5. again.
53+
- If we are on a non-leaf node, then we go to the last child of the node, and perform the steps 3 - 5 again.
5454
- If we are on a leaf, then `k` is not in the tree.
5555

5656
### The code

0 commit comments

Comments
 (0)