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
An ideal Diesel cycle has a compression ratio of 17 and a cutoff ratio of 1.3. Determine the maximum temperature of the air and
Radda [10]

Answer:

maximum temperature = 1322 k

rate of heat addition = 212 kw

Explanation:

compression ratio = 17

cut off ratio = 1.3

power produced = 140 Kw

state of air at the beginning of the compression = 90 kPa and 578 c

Determine the maximum temperature of air

attached below is the detailed solution

6 0
3 years ago
A poundal is the force required to accelerate a mass of 1 lbm at a rate of 1 ft/(s^2). Determine the acceleration of an object o
storchak [24]

Answer:

See it in the pic

Explanation:

See it in the pic

5 0
3 years ago
The Eads Bridge, which crosses the Mississippi River near St Louis, Missouri, was one of the first all steel bridges built in th
MrMuchimi

Answer: At 520 feet between the piers, the center arch of Eads Bridge was the longest rigid span ever built at the time of its construction (only a few suspension bridges had longer spans).

Explanation:

5 0
2 years ago
Suppose there are 76 packets entering a queue at the same time. Each packet is of size 5 MiB. The link transmission rate is 2.1
tia_tia [17]

Answer:

938.7 milliseconds

Explanation:

Since the transmission rate is in bits, we will need to convert the packet size to Bits.

1 bytes = 8 bits

1 MiB = 2^20 bytes = 8 × 2^20 bits

5 MiB = 5 × 8 × 2^20 bits.

The formula for queueing delay of <em>n-th</em> packet is :  (n - 1) × L/R

where L :  packet size = 5 × 8 × 2^20 bits, n: packet number = 48 and R : transmission rate =  2.1 Gbps = 2.1 × 10^9 bits per second.

Therefore queueing delay for 48th packet = ( (48-1) ×5 × 8 × 2^20)/2.1 × 10^9

queueing delay for 48th packet = (47 ×40× 2^20)/2.1 × 10^9

queueing delay for 48th packet = 0.938725181 seconds

queueing delay for 48th packet = 938.725181 milliseconds = 938.7 milliseconds

4 0
3 years ago
A college student volunteers with the elderly in a hospice program and discovers her clients complain of dry skin. She has an id
daser333 [38]

Answer:

D

Explanation: She hopes to be able to make this, however she hasn't yet...therefore she is thinking of a concept and it's development

3 0
3 years ago
Read 2 more answers
Other questions:
  • Suppose a possibly biased die is rolled 30 times and that the face containing
    13·1 answer
  • Fatigue failure occurs under the condition of (a) High elastic stress (b) High corrosivity (c) High stress fluctuations (d) High
    9·1 answer
  • Two AAA-size lithium batteries are connected in series in a flashlight. Each battery has 3.5 volt and 4- Amp-hour capacity. If t
    8·1 answer
  • Psychologist who uses behavioral approach to therapy would probably try which of the following
    13·2 answers
  • Create a C language program that can be used to construct any arbitrary Deterministic Finite Automaton corresponding to the FDA
    6·1 answer
  • Parallel circuits???
    9·1 answer
  • A(n) ____ is an exact representation of an object projected onto a plane from a specific position.
    14·1 answer
  • Which should i get they are both for sale
    10·2 answers
  • PLEASE ANSWER SOON
    7·1 answer
  • What ic engine for mechanic
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!