Lesson 1: A page that slowed with every user · 9 min
Before you begin · The slow page · What went wrong
Learners sign in, so every finish and score is recorded. 5 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The slow page · What went wrong
Growth · Rank by growth · Check
Search methods · Pick the approach · Check
Which structure? · Check
Quick tour · The slow lookup
Review habit · Practice
Taken from the course itself.
What would best have prevented this?
Answer: Thinking about how time grows with size. Estimating growth before the catalogue grows shows the problem while it is cheap to fix.
Lesson 1: A page that slowed with every user
Why does binary search need sorted data?
Answer: It decides which half to discard. Knowing the order lets it throw away half the range at each step.
Lesson 3: Searching and sorting
Which structure suits the last-in, first-out rule?
Answer: A stack. A stack gives back the most recent item first, like a pile of plates.
Lesson 4: Stacks, queues and lists
You must find one record in a sorted list of 1 million.
Best response: Binary search.
Weaker responses: Check each in order; Sort again each time; Copy the list.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.