Answer:
I wanna say its all real numbers
Step-by-step explanation:
Answer:
f(N) = 2+ N/2 + 6N² units of time.
Step-by-step explanation:
Assigning 0 to the variable sum takes one unit of time.
Each time you increment sum by B, you need to call the value of sum, sum it to B and assign it to sum, which takes three units of time in total. You are repeating this process for each value of B which ranges from 1 to 4n and for each value of A which ranges from 1 to n/2. Opening the FOR takes also another unit of time, so, as a result, we have
f(N) 1 + 1 (open the FOR in A)+ N/2*(1 (open the FOR in B) + 4N*3) = 2+ N/2 + 6N² units of time. It has order complexity O(N²).
Answer:
B
Step-by-step explanation:
This asks for data from multiple people, and it not just a yes or no question
Explanation:
This can be explained by thinking numbers on the number line as:
Lets take we have to multiply a positive number (say, 2) with a negative number say (-3)
<u>2×(-3)</u>
Suppose someone is standing at 0 on the number line and to go to cover -3 , the person moves 3 units in the left hand side. Since, we have to compute for 2×(-3), The person has to cover the same distance twice. At last, he will be standing at -6, which is a negative number.
A image is shown below to represent the same.
<u>Thus, a positive times a negative is a negative number.</u>