Course guide 01 / 04
Seven Steps of Highly Effective Problem Solving
This lesson explains seven steps for solving an algorithm question: understand it, solve it manually, design a solution, challenge the idea, implement it, test it, and clean up the code.
Who is this for?
Software students and candidates preparing for algorithm problems and coding interviews. For people learning how to approach a question and explain their solution during an interview.
Before you start
Basic programming: functions, conditionals, loops, lists, and dictionaries. Basic Python is enough to follow the examples.
What will you take away?
Plan a solution before jumping into implementation; explain why it works and which tests will check it.
Inside the lesson
New here? Start from the beginning. Here is how the lesson unfolds.
Start the lessonSolving problems in coding interviews
This lesson explains seven steps for solving an algorithm question: understand it, solve it manually, design a solution, challenge the idea, implement it, test it, and clean up the code.
1 · Understand what is being asked
Read carefully, explain the task in your own words and connect each rule to a small example.
2 · Solve a small input by hand
Find an answer before choosing a data structure. Watch the work you repeat.
3 · Put a complete solution idea on paper
Write what you store, what you look up, when you update it and when you return.
4 · Try to break your idea
Challenge your favourite plan before spending time implementing it.
5 · Implement in clear, explainable blocks
Choose a language you can use fluently, name the state clearly and keep the interviewer informed.
6 · Give every test a reason
Choose your own inputs to catch a specific mistake, and calculate the correct result before running them.
7 · Simplify and clean up the code
When the solution works, use the remaining time to make it easier to read and check.
Longer practice: apply the seven steps to image smoothing
Allow more time for this transfer task. Complete the paper design first, then implement and check it.
Return to a section
If you have already opened the lesson, choose a section you want to revisit.
Try it yourself
Solve the problem
- Read the seven-step method, trace Two Sum and study the examples.
- Answer the short questions, run the Two Sum checks and try the refactor.
- Apply all seven steps to image smoothing; implement, test and explain the costs.
Resources
Code and original product screens keep their original language. The lesson explains them in your selected language.
Download the complete workshop (.zip)ZIP