guess the next step: Linked list
Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.
Step 1 of 12
Question 1 of 5
Step 1 of 12
Step 2 of 12
Step 3 of 12
Step 4 of 12
Step 7 of 12
Step 8 of 12
Step 9 of 12
Step 10 of 12
Question 1 of 5
Question 1 of 5
Right.
You guessed: Link it in at the start of the chain.
What the run did:
Link 12 in at the start of the chain.
Question 1 of 5
Not this time.
You guessed: Link it in partway along the chain.
What the run did:
Link 12 in at the start of the chain.
Question 2 of 5
Question 2 of 5
Right.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
12 is not bigger than 30, so walk on past it.
Question 2 of 5
Not this time.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
12 is not bigger than 30, so walk on past it.
Question 2 of 5
Not this time.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
12 is not bigger than 30, so walk on past it.
Question 3 of 5
Question 3 of 5
Not this time.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
Link 30 in at the end of the chain.
Question 3 of 5
Not this time.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
Link 30 in at the end of the chain.
Question 3 of 5
Right.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
Link 30 in at the end of the chain.
Question 4 of 5
Question 4 of 5
Right.
You guessed: Link the places either side of it to each other.
What the run did:
Link the places either side of 12 to each other, so nothing points at 12 any more. It is out.
Question 4 of 5
Not this time.
You guessed: It is the last place, so the place before it now ends the chain.
What the run did:
Link the places either side of 12 to each other, so nothing points at 12 any more. It is out.
Question 5 of 5
Question 5 of 5
Not this time.
You guessed: Link the places either side of it to each other.
What the run did:
30 is the last place, so the place before it now ends the chain, and nothing points at 30 any more. It is out.
That is every question on this run: 0 of 5 right.
Question 5 of 5
Right.
You guessed: It is the last place, so the place before it now ends the chain.
What the run did:
30 is the last place, so the place before it now ends the chain, and nothing points at 30 any more. It is out.
That is every question on this run: 1 of 5 right.