Question
There is a BST and below is the Pre order of the BST,
What will be itβs In order 150 70 60 80 250 200 350Solution
Preorder = Root β Left β Right First element = root β 150 Remaining elements = Left (150) Left subtree of 150: 70, 60, 80 Root of left subtree = 70 Left of 70 = 60 Right of 70 = 80 Right subtree of 150: 250, 200, 350 Root of right subtree = 250 Left of 250 = 200 Right of 250 = 350 So BST structure: 150 / \ 70 250 / \ / \ 60 80 200 350 Step 3: Inorder Traversal (Left β Root β Right) Left subtree of 150 β 60, 70, 80 Root = 150 Right subtree β 200, 250, 350 Combine: 60, 70, 80, 150, 200, 250, 350 Answer (Inorder Traversal) 60 70 80 150 200 250 350
Find the upcoming numbers in this series.
12, 43, 162, 633,?
Select the option that represents the letters that, when placed from left to right in the following blanks, will complete the letter-series.
F I ...
A, B, C, D, E, F, G and H are sitting around a square table, four of them sit at the 4 corners, while four sit at the middle of the sides. The ones who ...
Select the number from the given alternatives that can replace the question mark (?) in the following series.Β
0, 6, 24, 60, 120, ?
Which two numbers (not digits) should be interchanged to make the given equation correct?
48 Γ· 3 + 12 Γ 4 β 6 Γ 7 + 21 = 27Β
Statements:
All bats are wickets.
No bat is a field.
Conclusions:
(I) No wicket is a field.
(II) Some fields are...
Select the set in which the numbers are related in the same way as are the numbers of the following set.
(NOTE : Operations should be performed o...
If β+β means βΓβ, βββ means βΓ·β, βΓβ means β+β, and βΓ·β means βββ, then what will be the value of the following ...
1, 2, 3, 4, 5 and 6 are written on different faces of a dice. Three different positions of the same dice are shown below. Find the number on the face op...
Select the Venn diagram that best illustrates the relationship between the following classes.
Electrical Appliance, Refrigerator, Freezer
...