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 17
Question 1 of 14
Step 1 of 17
Step 2 of 17
Step 3 of 17
Step 4 of 17
Step 5 of 17
Step 6 of 17
Step 7 of 17
Question 1 of 14
Question 1 of 14
Right.
You guessed: Link it in at the start of the chain.
What the run did:
Link 23 in at the start of the chain.
Question 1 of 14
Not this time.
You guessed: Link it in partway along the chain.
What the run did:
Link 23 in at the start of the chain.
Question 2 of 14
Question 2 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 7, so 7 goes just before it.
Question 2 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 7, so 7 goes just before it.
Question 2 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 7, so 7 goes just before it.
Question 3 of 14
Question 3 of 14
Right.
You guessed: Link it in at the start of the chain.
What the run did:
Link 7 in at the start of the chain.
Question 3 of 14
Not this time.
You guessed: Link it in partway along the chain.
What the run did:
Link 7 in at the start of the chain.
Question 4 of 14
Question 4 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 42, so walk on past it.
Question 4 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 42, so walk on past it.
Question 4 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 42, so walk on past it.
Question 5 of 14
Question 5 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 42, so walk on past it.
Question 5 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 42, so walk on past it.
Question 5 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 42, so walk on past it.
Question 6 of 14
Question 6 of 14
Not this time.
You guessed: The number here is not bigger, so walk on past it.
What the run did:
Link 42 in at the end of the chain.
Question 6 of 14
Not this time.
You guessed: The number here is bigger, so the new number goes just before it.
What the run did:
Link 42 in at the end of the chain.
Question 6 of 14
Right.
You guessed: The chain ends, so link the new number in at the end.
What the run did:
Link 42 in at the end of the chain.