Zac Anger's Blog

Solving programming problems

10 February, 2016

Basic steps of solving programming problems:

  1. Find the input.
  2. Find the output.
  3. Figure out how you need to transform the input to the output in plain English.
  4. Translate this into your chosen programming language.
  5. Run the code (in your head, or on a machine).
  6. If the output isn't what you expected, start over with step three.

... that's basically it.

Submit a bug report