Answer:
a. We <u>used to</u> go to school together.
b. How did you <u>use to</u> spend the winter evenings?
c. We <u>used to </u>have our milk delivered.
d. I <u>used to</u> be in love with him.
e. At one time there <u>used to</u> be trees in the garden.
there is no definite answer. so long as you are not touching another vehicle or in the road.
Answer:
Explanation:
The following code is written in Java. Both functions traverse the linkedlist, until it reaches the desired index and either returns that value or deletes it. If no value is found the function terminates.
public int GetNth(int index)
{
Node current = head;
int count = 0;
while (current != null)
{
if (count == index)
return current.data;
count++;
current = current.next;
}
assert (false);
return 0;
}
public int removeNth(int index)
{
Node current = head;
int count = 0;
while (current != null)
{
if (count == index)
return current.remove;
count++;
current = current.next;
}
assert (false);
return 0;
}