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
shepuryov [24]
4 years ago
8

int foo(int A[], int left, int right){ int i, x, q, N; if(right <= left) return 1; x = 0; for(i=left; i <= right; i++) x +

= A[i] % 2; // busy work... N = right-left+1; q = left + (N/3); return x + foo(A, left, q) + foo(A, q+1, right);
Computers and Technology
1 answer:
sineoko [7]4 years ago
3 0

Answer:

quicksort.cpp

void quickSort(int arr[], int left, int right) {

     int i = left, j = right;

     int tmp;

     int pivot = arr[(left + right) / 2];

 

     /* partition */

     while (i <= j) {

           while (arr[i] < pivot)

                 i++;

           while (arr[j] > pivot)

                 j--;

           if (i <= j) {

                 tmp = arr[i];

                 arr[i] = arr[j];

                 arr[j] = tmp;

                 i++;

                 j--;

           }

     };

 

     /* recursion */

     if (left < j)

           quickSort(arr, left, j);

     if (i < right)

           quickSort(arr, i, right);

}

You might be interested in
Top Down Design makes it easier to solve a problem by:___________
vaieri [72.5K]

Answer:

c) Starting with the biggest function and then moving to smaller ones

Explanation:

This design is a breakdown of a structure to determine the text functionality for small parts. The system analyzes the built-in top-down style, which defines and does not define some first-level components, often referred to as an unstable layout.

so correct answer is c) Starting with the biggest function and then moving to smaller ones

4 0
3 years ago
PAGE<br>DATE<br>0 What types of information should be there internet?​
Hoochie [10]

Answer:

The kind of information that should be on the internet must be one that is good.

Explanation:

Qualities of good information are as follows:

A) Relevance:

For the purpose it was published, to the audience, it was intended for, every information put out there on the internet must be relevant. This is key and not negotiable. Perhaps its relevance may wane over time, however, in the period it was posted, it has to speak to the intended purpose.

B) Complete:

Incomplete information automatically becomes misleading or useless.

To say Donald Trump was a United States president in 2021 would be factually correct. However, that statement is misleading because he also stepped down in the same year for Joe Biden. Now that gives a complete and true picture of the Presidency of the United State of America (POTUS) in 2021.

 

C) Accuracy:

Accuracy means there is little chance for misinterpretation, misinformation, and misrepresentation of facts.

Essentially, if it's a spade, don't call it a pen.

D) Clarity:  

"In 2020, delegates to the White House to speak about the problems so that we can be happy so the problems have to go away soon"

The above statement at its best only tells us that someone sent delegates to the White House to speak about problems. We don't know what the problem was, who the delegates were, nor do we know who sent them. Clarity is key. The next point conciseness also helps with this.

E) Conciseness

Another word for this is brevity.

This does not necessarily mean one must only publish short messages on the internet. It simply means that you must make your point with the least amount of words possible.

F) Authenticity

Call it trustworthy information if you like. People make decisions based on information they have received. If one must put out information on the internet, it must be true, factual, and correct.

Cheers

5 0
3 years ago
Which of the following can a cell contain?
vredina [299]
I think it could be All of these.....
5 0
3 years ago
Read 2 more answers
A software development team needs to upgrade a program, but the team members are having trouble understanding the program code a
labwork [276]

Hey there mate :)

As per question,

Question:- A software development team needs to upgrade a program, but the team members are having trouble understanding the program code and how it works. What could be the reason?

To find:- Write the correct option

Answer:- <u>Option </u><u>B.</u><u> </u><u>incomplete documentation</u>

Answer per sentence:-

A software development team needs to upgrade a program, but the team members are having trouble understanding the program code and how it works. This is due to <u>incomplete</u><u> </u><u>documentation.</u>

7 0
3 years ago
What is the default file extension for a document created in Word 2016?​
kondaur [170]

docx

Office Open XML (OOXML) format was introduced with Microsoft Office 2007 and became the default format of Microsoft Word ever since. Pertaining file extensions include: .docx – Word document. .docm – Word macro-enabled document; same as docx, but may contain macros and scripts.

7 0
3 years ago
Other questions:
  • According to many experts how often should files be backed up
    12·1 answer
  • A form of speech used by a speaker who is attempting to be witty and amusing is _________.
    13·2 answers
  • Whereas lines of competition are clearly defined in the more established industries, in the Internet industry they are blurred a
    9·1 answer
  • Do you think you would share hardware or software resources in a LAN and why?
    14·1 answer
  • Which of the following protocols is used to unsure secure transmissions on port 443?A. HTTPSB. TelnetC. SFTPD. SHTTP
    6·1 answer
  • How are blogs and wiki alike
    15·2 answers
  • $
    15·2 answers
  • Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the person's age. Complete fat_burn
    14·1 answer
  • Write a MIPS assembly language program that adds the following two integers and displays the sum and the difference. In the .dat
    10·1 answer
  • In what year was the earliest documented use of the word computer?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!