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
Shtirlitz [24]
2 years ago
5

there are n houses in a row numbered from 1 to n. an array infected houses contains the houses the houses which are infected wit

h a virus. in one step, the virus can spread to only it adjacent houses. return the total number of unique ways the infection can spread.
Computers and Technology
1 answer:
Dmitriy789 [7]2 years ago
5 0

Since due to  one step, the virus can spread to only it adjacent houses. the return the total number of unique ways the infection can spread is 2.

<h3>What is the virus attack about?</h3>

A computer virus is known to be a kind or type of malicious software that tends to spreads from  computer to another and it is one that tends to lead to damage to data and software.

Lets take n = 5

The infected houses = [1,5]

Therefore, the Possible ways of infection spreading will be:

  • 2->4->3
  • 4->2->3

= 2

Therefore, Since due to  one step, the virus can spread to only it adjacent houses. the return the total number of unique ways the infection can spread is 2.

Learn more about virus  from

brainly.com/question/17395741

#SPJ1

You might be interested in
Before you insert a page break, what should you do? select the font you want to use for the text that comes after the page break
Triss [41]
Put the insertion point where you want the page to break is what I would write.
7 0
3 years ago
Write a loop that asks the user to enter a number. the loop should iterate 10 times and keep a running total of the numbers ente
Blababa [14]
int sum = 0;
int number;
for (int i=0; i<10; i++) { 
   printf("Enter an integer number: ");
   scanf_s("%d", &number);
   sum += number;
}

printf("The sum is %d", sum);

6 0
4 years ago
Who is mostly affected by computer viruses?
Komok [63]
People who use Windows OS.
3 0
4 years ago
A company with a large number of hosts creates three subdomains under a main domain. For easier management of the host records,
REY [17]

Answer:

4

Explanation:

For easier management of the host records of the company 4 zones should be used because

subdomain is part of a larger domain and the main domain which is the primary domain is the name which the company have decide to use which will represent the company website address and in a situation where the company

have different domain names in which they had registered, they will need to choose one among the domain which will inturn be their main domain.

Therefore for easier , efficient and effective management of the host records 4 zones will be the best zones to be used.

Example of sub domain is north.example.com

4 0
4 years ago
What can be found in the computer tower
8_murik_8 [283]
There are several things.
Some which include of
<span>Hard Disk Drive (HDD)
</span><span>Processor (CPU)
</span><span>Graphics card
</span>and
<span>Memory (RAM)</span>
8 0
4 years ago
Other questions:
  • (GAME DESIGN)
    15·1 answer
  • 2. What is the purpose of an outline? (1 point)
    8·1 answer
  • Write a program that gets a single character from the user. If the character is not a capital letter (between 'A' and 'Z'), then
    15·1 answer
  • If a tv was showing a flat black or blue screen or had "snow", what steps would you take to fix it? Give an example of the direc
    11·1 answer
  • The ash and dust from a volcanic eruption can cause a ______ change in the environment.
    8·1 answer
  • Why is it important to have at least one backup stored off-site?
    8·1 answer
  • There are two main advantages to using multiple threads in a process: 1) Less work involved in creating a new thread rather than
    7·1 answer
  • What command utilizes the limpel-ziv (lz77) compression algorithm and achieves a compression ratio of 60-70 percent?
    12·1 answer
  • In the context of machine learning, an artificial neural network (ann) is most likely used for?
    5·1 answer
  • By the mid-1990s, how did revenue generated from video games compare to revenue generated from movies?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!