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
[4 points] Does the green LED emit light when you connect the banana plug wires across it? What does that say about the threshol
castortr0y [4]

Yes, the green LED emits light when we connect the banana plug wires across it.

This indicates that the threshold voltage is lower for the green LED light than the blue.

<u>Explanation</u>:

A banana plug is named for its resemblance to the shape of a banana. They are wider in the middle of the plug, and narrower at the top and bottom. The banana plug can be easily plugged or unplugged into the ports of speaker or receiver.

LED lights emit photons when it is applied with electrical charge. LED lights are more efficient and last longer than incandescent light bulbs. Green light is commonly provides the calming effect. It is generally used in hyper-pigmentation treatment.

4 0
3 years ago
Fictional Corp is looking at solutions for their new CRM system for the sales department. The IT staff already has a fairly heav
Oksi-84 [34.3K]

Answer:

SaaS

Explanation:

Software as a service (SaaS) is also called software on demand, it involves a third party that centrally hosts the software and provides it to the end user.

All aspects of hosting is handled by the third party: application, data, runtime, middleware, operating system, server, virtualization, storage and networking are all handled by the provider.

This is an ideal software service for Fictional corp, as there will be no need to hire additional IT staff to maintain the new CRM software.

3 0
3 years ago
The three sub regions of South America are the Andes Mountains, the Amazon Rainforest, and the Eastern Highlands. The Atacama De
Leto [7]

Answer:

<:

Explanation:

8 0
2 years ago
Read 2 more answers
__________ affect(s) the amount of air conditioning required.
Grace [21]

Answer:

Option D

All the above

Explanation:

Depending with the number of occupants in a building, the number of air conditioners required can either be increased or reduced. For instance, if the building is to be a classroom of over 50 students, 1 air-conditioner can't serve effectively. Similarly, the activity of occupants also dictate the amount of air conditioners required since if it's a gym room where occupants exercise often then the air conditioners required is different from if the room was to serve as a  lounge. The appliances that also operate in a room require that air conditioners be installed as per the heat that may be generated by the appliances.

5 0
3 years ago
In a team, a person’s efforts are less identifiable than when that person works independently. Because the person’s efforts are
Eduardwww [97]
The answer is deindividuation - a psychological state in which a person does not feel individual responsibility.
3 0
3 years ago
Other questions:
  • Your Java program will be reading input from a file name strInput.txt. Each record contains String firstname String lastName Str
    13·1 answer
  • Air enters the compressor of an ideal Brayton refrigeration cycle at 100 kPa, 270 K. The compressor pressure ratio is 3, and the
    13·1 answer
  • You will create three classes, the first two being Student and LineAtOfficeHour. The instances of the first class defines a sing
    8·1 answer
  • In order to break even, your minimum selling price must be __________ your variable costs.
    10·1 answer
  • What are the benefits of using a multi view sketch to communicate a design
    14·1 answer
  • A fair die is thrown, What is the probability gained if you are told that 4 will
    12·1 answer
  • Can you guys please introduce yourself​
    15·2 answers
  • Which statement describes a possible limitation on a experimental design? A. Collecting samples to analyze is expensive B. The e
    6·2 answers
  • The stagnation chamber of a wind tunnel is connected to a high-pressure airbottle farm which is outside the laboratory building.
    11·1 answer
  • Technician a says that personal protective equipment (ppe) does not include clothing. technician b says that the ppe used should
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!