00:01
In this question, we have to build an avl tree using the following inputs value which are given in this question.
00:08
So the values are 2, 120, 7, 42, 24, 40, 32, 39, 37, 15, 13 and 14.
00:22
These are the input values and we have to make an avl tree.
00:28
So we see here step by step process.
00:30
First we have to insert 2 that is a root node.
00:34
After that it insert 120, right child of the root.
00:43
Then insert 7, left child of 2.
00:48
Then insert 42, right child of 7.
01:01
Then insert 24, left child of 42.
01:12
Then insert 40, which is right child of 24.
01:22
Then insert 32, left child of 40.
01:31
After that insert 39, that is right child of 32.
01:49
Insert 37, which is left child of 39...