Quiz

Question 1 of 5. 0 correct, 0 incorrect.

Put the steps for solving a coding problem you have not met before in order.

Hint

The code needs a plan, and the plan needs to know what is being asked.

  1. 1Clarify the input, the output and the limits
  2. 2Work two small examples by hand, one of them an edge case
  3. 3Write the code
  4. 4Find the bottleneck and choose a better approach
  5. 5State a brute-force solution and its cost
  6. 6Trace an example through the code