Skip to content

Commit dfebe2d

Browse files
committed
corrections
1 parent b0b85c5 commit dfebe2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

binary-search-tree/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ In this section, we will be learning binary search tree datastructure.
77

88
> A Binary Search tree is a binary tree in which nodes which have lesser value are stored on the left while the nodes with higher value are stored at the right
99
10-
Each tree node consists of three things they are
10+
Each tree node consists of three things, they are
1111
1. data
1212
2. left - pointer to the left tree node
1313
3. right - pointer to the right tree node
1414

1515
**_Data_** holds the data value of the tree node.
1616
**_Pointer_** holds the reference to the memory location of left/right tree node.
1717

18-
We would discuss on the following features like
18+
We are going to discuss on the following features like
1919
* insert node
2020
* remove node
2121
* get root node
@@ -41,7 +41,7 @@ In binary search tree, we can insert the node with the following guidelines/logi
4141

4242
### Logic:
4343
1. create a tree node object with the input data.
44-
2. check if root node exists on the tree, if yes search through the root node to find the location to insert (helper method ```insertNode``` does).
44+
2. check if root node exists on the tree. If yes, search through the root node to find the location to insert (helper method ```insertNode``` does).
4545
3. otherwise assign the created node as tree node.
4646

4747
```javascript

0 commit comments

Comments
 (0)