Q141
Open question
Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
275
Questions
8/14
Page
Pick an option on a question to see the right answer and solution.
Q141
Open question
Select an option to see the answer and solution.
Q142
Open questionSelect an option to see the answer and solution.
Q143
Open questionSelect an option to see the answer and solution.
Q144
Open questionSelect an option to see the answer and solution.
Q145
Open questionSelect an option to see the answer and solution.
Q146
Open questionSelect an option to see the answer and solution.
Q147
Open questionSelect an option to see the answer and solution.
Q148
Open questionarray=60 90 10 100 40 150 90
reverse 2 to 3
array=60 10 90 100 40 150 90
reverse 3 to 6
array= 60 100 150 40 100 90 90
now printout from 1 to 6 :-- 60 100 150 40 100 90
How to achieve the above operation efficiently?Select an option to see the answer and solution.
Q149
Open question
Select an option to see the answer and solution.
Q150
Open questionSelect an option to see the answer and solution.
Q151
Open question
Select an option to see the answer and solution.
Q152
Open questionSelect an option to see the answer and solution.
Q153
Open questionSelect an option to see the answer and solution.
Q154
Open questionSelect an option to see the answer and solution.
Q155
Open questionSelect an option to see the answer and solution.
Q156
Open questionSelect an option to see the answer and solution.
Q157
Open questionSelect an option to see the answer and solution.
Q158
Open questionint avl(binarysearchtree root):
if(not root)
return 0
left_tree_height = avl(left_of_root)
if(left_tree_height== -1)
return left_tree_height
right_tree_height= avl(right_of_root)
if(right_tree_height==-1)
return right_tree_height
Does the above code can check if a binary search tree is an AVL tree?Select an option to see the answer and solution.
Q159
Open questionSelect an option to see the answer and solution.
Q160
Open questionSelect an option to see the answer and solution.