Track 02

Algorithms & Data

Choose how to find, sort, and check data, then use a small example to see how your approach behaves.

Start here

Choose a pattern for the work it needs to do

  1. Name the operation. Write down what goes in and what must come out. Finding the first match and keeping the best five results are different jobs.

  2. Write down the limits. Can you sort the whole list, or do records arrive one at a time? How much can you keep in memory? Can you afford to miss a match?

  3. Try a small example. Open the Heap lab and step through a list of campaigns as they arrive. Check which campaigns the lab keeps when it can only store the top three.

Try the top-three campaign lab

Choose a visualizer

Open all 15 labs

Worked examples

References

Explore all five tracks