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]
4 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]4 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
Select the correct answer.
juin [17]
Orthographic projection, common method of representing three-dimensional objects, usually by three two-dimensional drawings in each of which the object is viewed along parallel lines that are perpendicular to the plane of the drawling.
4 0
3 years ago
Technician a s ays both an ohmmeter and a self-powered test light may be used to test for continuity. technician b says both may
amm1812

Both A and B technicians are correct because both might be used to test fuses, according to technician B.

<h3>What is continuity?</h3>

The behavior of a function at a certain point or section is described by continuity. The limit can be used to determine continuity.

From the question:

We can conclude:

The technician claims that you may check for continuity using both an ohmmeter and a self-powered test light. Both might be used to test fuses, according to technician B.

Thus, both A and B technicians are correct because both might be used to test fuses, according to technician B.

Technician A says both an ohmmeter and a self-powered test light may be used to test for continuity. Technician B says both may be used to test fuses. Who is correct?

Learn more about the continuity here:

brainly.com/question/15025692

#SPJ1

5 0
2 years ago
Distinguish between systems analysis and systems design?
Zielflug [23.3K]

Answer:

System analysis can be defined as a deep analysis of a part of the structure of a module that has been designed before. System design means to make any module or a part of the structure from scratch and build it completely without estimation.

Explanation:

3 0
3 years ago
________ are written to “maximize” or “minimize” a specific value associated with the product needs in order to define the goal
Anna35 [415]

Answer:

Objective statements.

Explanation:

An objective statement can be defined as a short statement that explicitly states or describes what a person wants exactly or is looking out for in a particular item.

Objective statements are written to “maximize” or “minimize” a specific value associated with the product needs in order to define the goal or aim of the design process.

This ultimately implies that, objective statements are used by various manufacturing industries or companies to explicitly define the minimum or maximum requirements for the production of its goods.

4 0
3 years ago
Read 2 more answers
Which of the following is most useful for doing research?
Ghella [55]

Answer:

Web Browser

Explanation:

Because you dont use a messaging app or presentation software to look up stuff its common knowledge

7 0
3 years ago
Other questions:
  • Find the linear speed of the bottom of a test tube in a centrifuge if the centripetal acceleration there is 5.4×104 times the ac
    6·1 answer
  • A steam pipe passes through a chemical plant, where wind passes in cross-flow over the outside of the pipe. The steam is saturat
    13·1 answer
  • OSHA does not approve individual states to have their own safety and health program.
    15·2 answers
  • There are a number of requirements that employers must do to protect their workers from caught-in or
    12·1 answer
  • 5 lb of propane is contained in a closed, rigid tank initially at 80 lbf/in^2, 110 degrees Fahrenheit. Heat transfer occurs unti
    5·1 answer
  • What is the heart of a set of construction drawing?
    10·1 answer
  • How to comment other people
    9·2 answers
  • Three bars each made of different materials are connected together and placed between two walls when the temperature is 12 oC. D
    9·1 answer
  • Describe the greatest power in design according to Aravena?
    15·1 answer
  • Does anyone know the answer to this
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!