Please enable JavaScript.
Coggle requires JavaScript to display documents.
HOW TO SOLVE A PROBLEM - Coggle Diagram
HOW TO SOLVE A PROBLEM
Step 1: Understand the problem
Can I restate the problem in my own word
What are the inputs that go into the problem
What are the outputs that should come from the solutions to the problem
Can the outputs be determined from the inputs?
How should I label the importance pieces of data that are a part of the problem?
Step 2: Explore concrete examples
Coming up with examples can help you understand the problem better
Start with Simple Examples
Progress to More Complex Examples
Explore Examples with Empty Inputs
Explore Examples with Invalid Inputs
Examples also provide sanity checks that your eventual solution works how it should
Step 3: Break It Down
Explicitly write out the steps you need to take.
Step 4: Solve Or Simplify
Find the core difficulty in what you're trying to do
Temporarily ignore that difficulty
Write a simplified solution
Then incorporate that difficulty back in
Step 5: Look back and Refactor
REFACTORING QUESTIONS
Can you check the result?
Can you derive the result differently?
Can you understand it at a glance?
Can you use the result or method for some other problem?
Can you improve the performance of your solution?
Can you think of other ways to refactor?
How have other people solved this problem?