Courses

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 lesson
  1. Introduction1–2

    Solving 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.

  2. Step 13–4

    1 · Understand what is being asked

    Read carefully, explain the task in your own words and connect each rule to a small example.

  3. Step 25–6

    2 · Solve a small input by hand

    Find an answer before choosing a data structure. Watch the work you repeat.

  4. Step 37–8

    3 · Put a complete solution idea on paper

    Write what you store, what you look up, when you update it and when you return.

  5. Step 49–10

    4 · Try to break your idea

    Challenge your favourite plan before spending time implementing it.

  6. Step 511–12

    5 · Implement in clear, explainable blocks

    Choose a language you can use fluently, name the state clearly and keep the interviewer informed.

  7. Step 613–14

    6 · Give every test a reason

    Choose your own inputs to catch a specific mistake, and calculate the correct result before running them.

  8. Step 715–16

    7 · Simplify and clean up the code

    When the solution works, use the remaining time to make it easier to read and check.

  9. Practice17–18

    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

  1. Read the seven-step method, trace Two Sum and study the examples.
  2. Answer the short questions, run the Two Sum checks and try the refactor.
  3. Apply all seven steps to image smoothing; implement, test and explain the costs.
Open the slides

Resources

Code and original product screens keep their original language. The lesson explains them in your selected language.

Download the complete workshop (.zip)ZIP