0%

Approach to Programming Problems

Approach to Programming Problems

Some basic steps:

  1. Make sure you understand the problem.
  2. Once you understand the question, try and example.
  3. Focus on the algorithm you will use to solve the problem.
  4. After you have figured out your algorithm and how you will implement it, explain your solution to the interviewer.
  5. While you code, it is important to explain what you are doing.
  6. Ask questions when necessary.
  7. After you have written the code for a problem, immediately verify that the code is correct by tracing through it with an example.
  8. Make sure you check your code for all error and special cases, especially boundary conditions.

Reference: Programming Interviews Exposed