How to solve problems
-
Don't Panic
-
Understand the problem:
- Identify inputs.
- Identify outputs.
- Google if someone has already solved the problem and use it if you can.
- Skip this step if you're solving problem for learning purpose.
- Work out examples.
- Examples give you test cases.
-
Develop simple solutions first.
-
Develop incrementally and test with each increment.
-
Optimize later.
Source: Udacity - Intro to Computer Science - Lesson 10. Link: https://classroom.udacity.com/courses/cs101/lessons/108111980/concepts/1083254270923