Computer Science I / Integrated Algorithm Design Practice
Practice question · Put in order

Order the first five steps of the design workflow the lesson recommends.

Hints
  1. Understanding the problem comes before choosing how to solve it.
  2. You pick data structures to serve a strategy, and you argue correctness before analysing speed.
Show the answer
  1. Understand the problem: inputs, output, constraints, and edge cases
  2. Choose an algorithmic strategy
  3. Pick data structures that make the hot operations fast
  4. Argue correctness
  5. Analyze time and space complexity
Why

Understand, choose a strategy, pick supporting data structures, argue correctness, then analyze complexity (and finally test). Jumping to a strategy before understanding the problem is a classic misstep.

Read the lesson: Integrated Algorithm Design Practice →

Practise Integrated Algorithm Design Practice

The app has 5 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Integrated Algorithm Design Practice