Answer and Explanation:
After inserting the integers "10", "30" and "20" in an AVL tree, It looks like:
This tree is not balanced. So, to balance this tree, we have to follow some steps:
Step 1 :
After following the LR (Left rotation), Tree will look like:
Step 2 :
Now, following the RL (Right rotation), we will get a balanced AVL tree like:
Name = "Bob"
# or you can prompt the user to enter their name:
# name = input("What's your name? ")
print("greetings," , name)
Best way is to put your exact question! And do "advanced search"
Hope I helped and if you need more info or another question, then feel free to ask me!
Have a nice day!
Answer: squared ← number * number
Explanation: