answer.
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]
2 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]2 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
Two identical horizontal sheets of glass have a thin film of air of thickness t between them. The glass has refractive index 1.4
Gre4nikov [31]

Answer:

the wavelength λ of the light when it is traveling in air = 560 nm

the smallest thickness t of the air film = 140 nm

Explanation:

From the question; the path difference is Δx = 2t  (since the condition of the phase difference in the maxima and minima gets interchanged)

Now for constructive interference;

Δx= (m+ \frac{1}{2} \lambda)

replacing ;

Δx = 2t   ; we have:

2t = (m+ \frac{1}{2} \lambda)

Given that thickness t = 700 nm

Then

2× 700 = (m+ \frac{1}{2} \lambda)     --- equation (1)

For thickness t = 980 nm that is next to constructive interference

2× 980 = (m+ \frac{1}{2} \lambda)     ----- equation (2)

Equating the difference of equation (2) and equation (1); we have:'

λ = (2 × 980) - ( 2× 700 )

λ = 1960 - 1400

λ = 560 nm

Thus;  the wavelength λ of the light when it is traveling in air = 560 nm

b)  

For the smallest thickness t_{min} ; \ \ \ m =0

∴ 2t_{min} =\frac{\lambda}{2}

t_{min} =\frac{\lambda}{4}

t_{min} =\frac{560}{4}

t_{min} =140 \ \  nm

Thus, the smallest thickness t of the air film = 140 nm

7 0
2 years ago
Read 2 more answers
A closely wound rectangular coil of 80 turns has dimensions 25.0 \rm cm by 40.0 \rm cm. The plane of the coil is rotated from a
Pepsi [2]

Answer:

88.3

Explanation:

Emf in a rotating coil is given by rate of change of flux:

E= dФ/dt=(NABcos∅)/ dt

N: number of turns in the coil= 80

A: area of the coil= 0.25×0.40= 0.1

B: magnetic field strength= 1.1

Ф: angle of rotation= 90- 37= 53

dt= 0.06s

E= (80 × 0.4× 0.25×1.10 × cos53)/0.06= 88.3V

4 0
2 years ago
Read 2 more answers
How much energy does a 50 kg rock have if it is sitting on the edge of a 15 m cliff?
noname [10]

Answer:

7350 J

Explanation:

The gravitational potential energy of the rock sitting on the edge of the cliff is given by:

U=mgh

where

m is the mass of the rock

g is the gravitational acceleration

h is the height of the cliff

In this problem, we have

m = 50 kg

g = 9.8 m/s^2

h = 15 m

Substituting numbers into the formula, we find:

U=(50 kg)(9.8 m/s^2)(15 m)=7350 J

3 0
2 years ago
Juan amd kym have four samples of matter. They are observing and describing the properties of these samples. Which property will
TiliK225 [7]

Answer: The property that will best provide evidence that the samples are solid includes:

--> if the substance has a definite shape,

-->if the substance has a definite volume

--> if it's tightly packed.

Explanation:

According to the kinetic theory of matter, every substance consist of very large number of very small particles called molecules. These molecules, which are made up of atoms that are the smallest particles of a substance that can exist in a free state.

Matter can exist in the following states:

--> Solid state

--> liquid state or

--> Gaseous state.

The general property of a substance that is in gaseous state includes:

--> Definite shape: A substance can be grouped as a solid if it's shape is fixed that is, it doesn't depend on the shape of other materials.

--> Definite volume: A substance can be grouped as a solid if it occupies its own shape. This is due to the force of cohesion among its molecules.

--> Tightly packed: A substance can be grouped as solid if the molecular movements of the particles are negligible.

From the samples under observation by Juan and kym, if the sample that possesses the above described qualities, it is a solid rather than liquid or gas.

4 0
2 years ago
suppose that 273 g of one of the substances listed above displaces 26 mL of water. What is the substance?
guajiro [1.7K]
<span>The unknown substance is silver. I don't see a list of available substances, but let's see if there's something reasonable available that will match. First, let's calculate the density of the unknown substance. Density is mass per volume, so 273 g / 26 mL = 10.5 g/mL Looking up a list of elements sorted by density, I see the following: 10.07 Actinium 10.22 Molybdenum 10.5 Silver 11.35 Lead And silver at 10.5 g/ml is a very nice match for the unknown substances' density of 10.5 g/ml.</span>
6 0
2 years ago
Read 2 more answers
Other questions:
  • An accelerometer is a device that uses the extension of a spring to measure acceleration in terms of Earth's gravitational accel
    13·2 answers
  • A cave explorer travels 3.0 m eastward, then 2.5 m northward, and finally 15.0 m westward. use the graphical method to find the
    8·2 answers
  • A person on a cruise ship is doing laps on the promenade deck. on one portion of the track the person is moving north with a spe
    10·2 answers
  • A constant torque of 200Nm turns a wheel about its centre. The moment of inertia of it about the axis is 100kgm^s . Find the kin
    13·2 answers
  • The inner and outer surfaces of a 5m x 6m brick wall of thickness 30 cm and thermal conductivity 0.69 w/m.0 c are maintained at
    7·1 answer
  • Two wheels are identical but wheel b is spinning with twice the angular speed of wheel
    8·1 answer
  • A solid spherical insulator has radius r = 2.5 cm, and carries a total positive charge q = 8 × 10-10 c distributed uniformly thr
    14·1 answer
  • Joel uses a claw hammer to remove a nail from a wall. He applies a force of 40 newtons on the hammer. The hammer applies a force
    5·2 answers
  • If you were to triple the size of the Earth (R = 3R⊕) and double the mass of the Earth (M = 2M⊕), how much would it change the g
    12·1 answer
  • Force F1 acts on a particle and does work W1. Force F2 acts simultaneously on the particle and does work W2. The speed of the pa
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!