The Startup
Published in

The Startup

Solving an Algorithm in a Technical Interview: The Problem-Solving Approach

Photo by Austin Distel on Unsplash

The problem-solving approach

1. Understand the problem and start communicating

  • Can I restate the problem in my own words?
  • What are the inputs that go into the problem? How about the output(s)?
  • Do I have enough information to solve the problem?
  • What are the important pieces of data the interviewer has given me? How should I label them in my code?

2. Concrete Examples

3. Break It Down

Break down the problem. Source

4. Declare the language you’ll use and solve the problem

5. Look Back and refactor

Wrapping it up



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andy del Valle

Software Engineer and Full Stack Web Developer based in Seattle, WA