the rotations for the tree would look like as you described after inserting 18

icon
Related questions
Question
100%

For B wouldn't insertion of a value between 20 and 23 also cause a right left imbalance?

 

Also can you please draw what the rotations for the tree would look like as you described after inserting 18.

2
5
8
13
10
15
17
20
23
25
30
Transcribed Image Text:2 5 8 13 10 15 17 20 23 25 30
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer