1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alexus [3.1K]
3 years ago
15

typedef struct bitNode { int data; struct bitNode *left; struct bstNode *right; } bstNode; int solve(bstNode* root) { if (root =

= NULL) return 0; int res = root->data; int left = solve(root→left); int right = solve(root->right); if (left+right > res) res = left+right; printf("%d,", res); return res; }_____ , _____ , _____ , _____ ,_____ , _____ , _____ , _____ , _____ , _____
Engineering
1 answer:
Sergio039 [100]3 years ago
4 0

Answer:

The ten numbers to be filled in the blanks are: 18, 7, 7, 11, 18, 36, 3, 8, 13, 50.

Explanation:

keeps on going to the left node until node->left == NULL;

now at Node 18;

left = right = 0; hence condition is not satisfied

18 is printed first.

the value 18 is returned .

Then we reach at 4;

from there we move to 7;

just like 18, similar things happen with 7 and 7 is printed, the value 7 is returned.

Now coming to Node 4,

left = 0, right = 7 ; hence the condition is satisfied & res = 7; 7 is printed.

For Node 16, left = 7 ; right = 11(but for this we visit 11 first and 11 is printed)

for 16; condition is satisfied; res = 7 + 11 = 18 ; 18 is printed

Now for 5; left = right = 18; the condition is satisfied; so res = 18 + 18 = 36; 36 is printed

Next we visit Node 3; 3 is printed & 3 is returned

Then Node 8 ; 8 is printed & 8 is returned

for Node 13; left = 3, right = 8 ; condition is not satisfied, 13 is printed.

For Node 50; left = 36 right = 13 ; condition is not satisfied hence 50 is printed.

So the order of printing is  18 7 7 11 18 36 3 8 13 50.

You might be interested in
What is EL Niño?
postnew [5]

Answer:

B

Explanation:

This occurs over the Pacific Ocean, so C and D are already wrong. El Nino heats the water and not cools it, so A is incorrect. So commonsense says that the answer is B.

4 0
3 years ago
The four strokes in a four stroke cycle engine in proper order.
Morgarella [4.7K]

Answer:

A four-stroke cycle engine is an internal combustion engine that utilizes four distinct piston strokes (intake, compression, power, and exhaust) to complete one operating cycle. The piston make two complete passes in the cylinder to complete one operating cycle.

Explanation:

6 0
3 years ago
Compared to 15 mph on a dry road, about how much longer will it take for
Marysya12 [62]

Answer:

8 to 10 times

Explanation:

For dry road

u= 15 mph        ( 1 mph = 0.44 m/s)

u= 6.7 m/s

Let take coefficient of friction( μ) of dry road is 0.7

So the de acceleration a = μ g

a= 0.7 x 10  m/s ²                         ( g=10 m/s ²)

a= 7 m/s ²

We know that

v= u - a t

Final speed ,v=0

0 = 6.7 - 7 x t

t= 0.95 s

For snow road

μ = 0.4

de acceleration a = μ g

a = 0.4 x 10 = 4 m/s ²

u= 30 mph= 13.41 m/s

v= u - a t

Final speed ,v=0

0 = 30 - 4 x t'

t'=7.5 s

t'=7.8 t

We can say that it will take 8 to 10 times more time as compare to dry road for stopping the vehicle.

8 to 10 times

7 0
3 years ago
Read 2 more answers
1. Under what conditions can soils be chemically stabilized?
marshall27 [118]

Answer:

All will be Explained below.

Explanation:

1) Under which Condition can a soil be chemically Stabilize.

Answer

a). Plasticity Index :A soil with a high value of plasticity Index is not good for various engineering projects. The introduction of line helps in reducing plasticity due cation exchange reaction.Pozzolanic reaction over time reduces plasticity and increase index strength due to the formation of calcium - silicate hydrate.

7 0
3 years ago
A gas stream contains 4.0 mol % NH3 and its ammonia content is reduced to 0.5 mol % in a packed absorption tower at 293 K and 10
bagirrra123 [75]

Answer:

Explanation:

Step by step solved solution is given in the attached document.

8 0
3 years ago
Other questions:
  • In what situation you would prefer to use a successive approximation ADC over flash ADC?
    13·1 answer
  • The pressure in an automobile tire depends on thetemperature of the air in the tire. When the air temperature is25°C, the pressu
    11·1 answer
  • According to the video, what are some of the effects of the increase in the use of automated tools for Loading Machine Operators
    10·2 answers
  • How do you connect several springs to increase the equivalent stiffness? What is one example from industry or other real-life si
    7·1 answer
  • The _____ plane is the plane in which the side of an object appears in
    12·1 answer
  • Think about the KIA factory shown in the video, what are two things that managers could do to reduce waste or increase efficienc
    6·1 answer
  • How to change a fuel fiter
    12·1 answer
  • Suppose a contract states that the designer should bear the responsibility if substantial differences were found between the des
    13·1 answer
  • 10. True or False? A disruptive technology<br> radically changes the way people live and<br> work.
    5·2 answers
  • What is the tolerance for number 4?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!