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
What voltage would be measured across the 15 ohm resistor?
algol13

Answer:

7.5 volts

Explanation:

I did it on USA Testprep

5 0
3 years ago
Explain what happens to the total mass of a mixture when it is separated?
SIZIF [17.4K]
The total mass of the mixture would not change.

Think about it as a mix of marbles. Suppose you have a group of 10 marbles. 5 marbles are red, and 5 marbles are blue. If you separate the marbles into 2 different groups by color, you still have 10 marbles in total, but they are separated and no longer a mixture of colors.
5 0
3 years ago
WILL MARK BRAINIEST!!!!!! (Fill in the blanks with the possible answers at the bottom)
drek231 [11]
Number 3 I think there was so much going In ckcoc v K o n&+\
5 0
3 years ago
What is Maria’s hypothesis for the experiment? State why Maria think this is a good hypothesis
BartSMP [9]

Answer:

Hot water will take longer to freeze into solid ice cubes than cold water, because the hot water molecules have to slow down more than cold water molecules to enter the solid state and become ice. ... All “cold” water must be at the same i

Explanation:

Hot water will take longer to freeze into solid ice cubes than cold water, because the hot water molecules have to slow down more than cold water molecules to enter the solid state and become ice. ... All “cold” water must be at the same i

5 0
4 years ago
Which statement best describes an isolated system? (1 point)
bonufazy [111]

Answer:

idk

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Jack and Jill are maneuvering a 3300 kg boat near a dock. Initially the boat's position is &lt; 2, 0, 3 &gt; m and its speed is
    11·1 answer
  • A bat strikes a 0.145-kg baseball. Just before impact, the ball is traveling horizontally to the right at 35.0 m/s ; when it lea
    15·1 answer
  • Can someone help meeeeee... show how to solve it plzzzzzzzz
    9·1 answer
  • Describe the relationship between joules, meters, and newtons
    15·1 answer
  • 11) Shifting with ease from one type of problem-solving strategy to another is called
    14·2 answers
  • The net work done on a system moving to a stop, in magnitude, is equal:
    7·1 answer
  • What are the three forms of Newton’s 3rd Law?
    10·2 answers
  • Samuel places a ladder against his house. The base of the
    13·2 answers
  • I accidentally posted this
    13·1 answer
  • Can someone help me ?​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!