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
inna [77]
4 years ago
5

You are given an array A representing heights of students. All the students are asked to stand in rows. The students arrive by o

ne, sequentially (as their heights appear in A). For the i-th student, if there is a row in which all the students are taller than A[i], the student will stand in one of such rows. If there is no such row, the student will create a new row. Your task is to find the minimum number of rows created. test cases
Mathematics
1 answer:
Marrrta [24]4 years ago
6 0

The minimum number of rows is 1: if A is sorted in descending order, every next students will arrive in a row where everyone is taller than him, and no new rows will be created.

For example, consider

A = [190, 175, 170, 165, 150]

The first students creates the first row.

The second student is 175cm tall. In the first row everyone is taller than him (there's only the 190cm student), so he'll stand in this row.

The third student, 170cm, will find the row filled by the students who are 190 and 175cm tall. So, everyone is taller than him and he'll stand in that row as well.

You keep going with the other students, and you'll see that no one will form a new row.

You might be interested in
Which ones are equivalent tell me all that apply:)
Snezhnost [94]

a) second and last one : 32x - 24 and 8*4x - 8*3

b) first and third one : 22y and 7y + 15y

pls mark brainliest!!

3 0
4 years ago
Read 2 more answers
Which of the following functions has the greatest y-intercept?
Evgen [1.6K]
G(x) because it has a y intersect of 5 but f(x) only 3
3 0
3 years ago
The distribution of the amount of money spent by students for textbooks in a semester is approximately normal in shape with a me
Setler [38]

Answer:

D. $275

Step-by-step explanation:

Problems of normally distributed samples are solved using the z-score formula.

In a set with mean \mu and standard deviation \sigma, the zscore of a measure X is given by:

Z = \frac{X - \mu}{\sigma}

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the pvalue, we get the probability that the value of the measure is greater than X.

In this problem, we have that:

\mu = 235, \sigma = 20

According to the standard deviation rule, almost 2.5% of the students spent more than ... on textbooks in a semester:

This is the value of X when Z has a pvalue of 1-0.025 = 0.975. So it is X when Z = 1.96[/tex]

So

Z = \frac{X - \mu}{\sigma}

1.96 = \frac{X - 235}{20}

X - 235 = 20*1.96

X = 274.2

So the correct answer is:

D. $275

5 0
3 years ago
An archer hits the center of the target (the bullseye) 70 percent of the time. However, she is a streak shooter, and if she hits
laiz [17]

Answer:

0.595

Step-by-step explanation:

We are given that An archer hits  centre of the target

We have to calculate the probability that she will hit the centre of the target on two consecutive shots.

P(A)=P(B)=0.70

P(B/A)=0.85

We know tha formula

P(B/A)=\frac{P(A\cap B)}{P(A)}

Substitute the value then we get

P(A\cap B)=P(B/A)\cdot P(A)=0.85\times 0.70=0.595

Hence, the probability that she will hit the centre of the target on two consecutive shots=0.595

3 0
3 years ago
Find the slope between (1,16) and (9,9). Substitute in the following numbers that are missing. Rise (? - 6) Run (9 - ?)
german

Answer:

-7,8

9-16=-7

9-1=8

4 0
4 years ago
Other questions:
  • Translate to an algebraic expression.
    12·1 answer
  • (Help...............)
    12·1 answer
  • What is 56 as a reduced fraction?
    14·2 answers
  • Which question is a statistics question that anticipates variability? A) How old am I? B) How old is my cat? C) How old is my ne
    6·2 answers
  • What is the Measure of Angle BHC and Angle BGC? And Why?
    6·1 answer
  • You run 4 3/4 miles through a park each day. If you ran that distance 5 times last week, how many miles did you run?
    11·2 answers
  • BTS army follow me I will follow back I purple u​
    11·2 answers
  • Yo i need help please i’ll give a brainliest to whoever gets the correct answer
    7·1 answer
  • 1. Try It #1
    9·1 answer
  • PLEASE HELP!!!!!!!!!
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!