When approaching coding problems, it can be helpful to follow a process. We recommend a four-step approach:
- Understand the problem
- Write Pseudocode
First, make sure you understand the problem you’re working on. What is it asking you to do? Look at the parts of the problem and break it down into manageable steps.
Break the problem down into key steps - each one should be one or two sentences. Translate the problem into steps that you understand.
Once you’ve coded a solution, reflect on what you wrote.
What can you change about your code to make it more efficient? How might you solve the problem differently?