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
KIM [24]
3 years ago
7

Why is thesize saved prior to entering the for loop? 2. what is the running time of removefirsthalf if lst is an arraylist? 3. w

hat is the running time of removefirsthalf if lst is a linkedlist?
Physics
1 answer:
Mrac [35]3 years ago
8 0
<span>After entering the loop, it should use the correct list size and the loop will be affected if the remove call changes the size of the list. If lst is an Arraylist the running time of removefirsthalf is O (n^2). So when the beginning is removed the next element will move forward. If lst is a LinkedList which is a dynamic structure the running is O (n) for removefirsthalf</span>
You might be interested in
A young man heaves a 6.5 kg rock at a velocity of 6.9 m/s. What is the kinetic energy of the rock?
earnstyle [38]

Answer:

Hope it will help you a lot.

7 0
2 years ago
The acceleration of an object would increase if there was an increase in the
xxMikexx [17]

As per Newton's II law we know that

F_{net} = ma

here we know that

F_{net} = F_{ap} - F_f

so here we will have

a = \frac{F_{ap} - F_f}{m}

so here if we need to increase the acceleration we need to increase the applied force while on increasing the mass or on increasing the friction force the acceleration will decrease.

So here correct answer will be

<em>A) force on the object.</em>

4 0
4 years ago
What is a situation in which friction is helpful?
bagirrra123 [75]
When driving a car on the road
8 0
3 years ago
How does gravity affect the velocity of falling objects?
sladkih [1.3K]

When objects fall to the ground, gravity causes them to accelerate. Acceleration is a change in velocity, and velocity, in turn, is a measure of the speed and direction of motion. Gravity causes an object to fall toward the ground at a faster and faster velocity the longer the object falls

7 0
4 years ago
1)what is the momentum of a 40,000,000kg tanker traveling at 5 m/s?
Fittoniya [83]

Answer:

1)4*10^7 * 5= 2*10^8

2)50/10=5

5 0
3 years ago
Other questions:
  • What does newtons 2nd law say about the relationship between Net Force and Acceleration?
    14·2 answers
  • . Why are SI units helpful to scientists especially when describing objects?
    13·1 answer
  • A ball is thrown straight up with a launch of 3 m/s.
    12·1 answer
  • Exit to create electricity using a nuclear power plant, energy from the uranium in the reactor produces lots of ________ in orde
    6·1 answer
  • Flying plane
    11·2 answers
  • A girl tries to jump over a 0.825 m
    6·1 answer
  • At a country music festival, a band is playing at the end of a crowded
    9·1 answer
  • A graph of velocity versus time (velocity displayed in m/s and time in seconds) displays a
    6·1 answer
  • What is the force of a 100 kg car that hits a wall while accelerating at 5 m/s2?​
    5·1 answer
  • How can you determine that a coin
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!