---
title: "How to Pass A Coding Interview"
description: "Developers ask me how to pass a coding interview more than anything else, so I wrote down what I think it takes to walk in well prepared."
url: https://www.joekarlsson.com/blog/how-to-pass-coding-interview/
---

May 13, 2020 | 2 min read | [Career](https://www.joekarlsson.com/blog/category/career/)

# How to Pass A Coding Interview

**Blog** Developers ask me how to pass a coding interview more than anything else, so I wrote down what I think it takes to walk in well prepared.

**TL;DR** My five-step plan for passing coding interviews: master a language, read Cracking the Coding Interview, grind LeetCode, do 30-40 mock interviews on Pramp, then validate on interviewing.io.

On this page

1.  [1\. Master a programming language](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#1-master-a-programming-language)
2.  [2\. Learn algorithms, data structures and complexity analysis](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#2-learn-algorithms-data-structures-and-complexity-analysis)
3.  [3\. Solve problems](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#3-solve-problems)
4.  [4\. Do mock interviews](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#4-do-mock-interviews)
5.  [5\. Final test](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#5-final-test)
6.  [Congratulations!](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#congratulations)

The question I most frequently get from developers is how to pass a coding interview. What follows is what I think will be sufficient for a person to be well prepared.

## 1\. Master a programming language

If you’re new to coding, make sure you have a solid grip on at least one language. You don’t want this to become a barrier in your interview. If you’re still figuring out where to start, I put together a list of [my top resources for learning how to code](https://www.joekarlsson.com/blog/my-top-resources-for-learning-how-to-code/) Jan 26, 2018**So, You Want To Learn How To Code? Here’s What You Need To Know.** that might help.

## 2\. Learn algorithms, data structures and complexity analysis

**[1](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#mn-w-1)** Complexity : usually Big O notation: how an algorithm’s running time or memory grows as its input grows.

Read the book “Cracking the Coding Interview”. Do the exercises, learn the common algorithms, and how to calculate complexity [1](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#mn-1).

## 3\. Solve problems

![Handwritten JavaScript in blue marker on a whiteboard: a function incrementExp that walks an array of digits from the end, with test cases 9,8, 9,9 and 1,0,0 written beside it.](https://www.joekarlsson.com/images/blog/how-to-pass-coding-interview/a-whiteboard-answer-to-the-plusone.webp)

A whiteboard answer to the plus-one array problem, 2018.

Solve different kinds of medium, easy and hard problems on [leetcode.com](https://leetcode.com/). Your target should be enough practice to be able to solve any problem in 30 minutes. If you get stuck, read the discussion for the problem, learn the solution, and code it yourself.

## 4\. Do mock interviews

**[2](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#mn-w-2)** Jul 2024 Since July 2024, new Pramp sessions run on Aced Practice. It is still free.

If you think you’re ready, do at least 30-40 mock interviews on [2](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#mn-2) [pramp.com](https://www.pramp.com/). This helps you learn from others how they solve problems and experience a live interview situation.

**[2](https://www.joekarlsson.com/blog/how-to-pass-coding-interview/#mn-w-2)** Jul 2024 Since July 2024, new Pramp sessions run on Aced Practice. It is still free.

## 5\. Final test

If you’re able to clear most interviews on pramp, finally go to [interviewing.io](https://iio.sh/r/tFqw) and clear at least 3 interviews.

## Congratulations!

Now you should be in good shape but do realize after all this you’re not guaranteed success. We get whatever God is destined for us, our job is only to make an effort to seek it. There are competent engineers who are great at leetcode but still don’t clear the interview. We control only one variable in the equation.

## Works on My Machine

Get the next post by email. My newsletter covers homelab builds, AI tools and open source, and it goes out when I have something to say.

It’s free, and you can unsubscribe anytime. You’ll get an email to confirm first.

![Joe Karlsson at his desk, chin on hand, with a microphone in front of him](https://www.joekarlsson.com/images/about/collage/studio.webp)

Joe Karlsson

Technology is better when it's weird and it's yours. Everything I write about runs in my house.

[More about me →](https://www.joekarlsson.com/about/)

[Bluesky](https://bsky.app/profile/joekarlsson.com) | [LinkedIn](https://www.linkedin.com/in/joekarlsson/) | [GitHub](https://github.com/JoeKarlsson)
