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 7 of 17
Question 7 of 14
Step 7 of 17
Step 8 of 17
Step 9 of 17
Step 10 of 17
Step 11 of 17
Step 12 of 17
Step 13 of 17
Step 14 of 17
Question 7 of 14
Question 7 of 14
Right.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
7 is not bigger than 15, so walk on past it.
Question 7 of 14
Not this time.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
7 is not bigger than 15, so walk on past it.
Question 7 of 14
Not this time.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
7 is not bigger than 15, so walk on past it.
Question 8 of 14
Question 8 of 14
Not this time.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
23 is bigger than 15, so 15 goes just before it.
Question 8 of 14
Right.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
23 is bigger than 15, so 15 goes just before it.
Question 8 of 14
Not this time.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
23 is bigger than 15, so 15 goes just before it.
Question 9 of 14
Question 9 of 14
Not this time.
You guessed: Link it in at the start of the chain.
What the run did:
Link 15 in just before 23, and point it at 23.
Question 9 of 14
Right.
You guessed: Link it in partway along the chain.
What the run did:
Link 15 in just before 23, and point it at 23.
Question 10 of 14
Question 10 of 14
Right.
You guessed: Link the places either side of it to each other.
What the run did:
Link the places either side of 7 to each other, so nothing points at 7 any more. It is out.
Question 10 of 14
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 7 to each other, so nothing points at 7 any more. It is out.
Question 11 of 14
Question 11 of 14
Right.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
15 is not bigger than 31, so walk on past it.
Question 11 of 14
Not this time.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
15 is not bigger than 31, so walk on past it.
Question 11 of 14
Not this time.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
15 is not bigger than 31, so walk on past it.
Question 12 of 14
Question 12 of 14
Right.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
23 is not bigger than 31, so walk on past it.
Question 12 of 14
Not this time.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
23 is not bigger than 31, so walk on past it.
Question 12 of 14
Not this time.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
23 is not bigger than 31, so walk on past it.