Advice > Software engineering

47 Coding interview examples with answers (in Python, Java, C++, Etc.)

By Max Serrano on July 27, 2023 How we wrote this article
a laptop split screen, with code on one side and a video call participant on the other

One of the best ways to prepare for coding interviews is by studying coding mock interview examples. 

There are a lot of free videos out there but it’s hard to know what language they’re actually using without watching them.

In the article below, we’ve listed the best mock interviews available on YouTube for the most common coding language. 

We hope this list saves you time!

Click here to practice coding interviews with FAANG engineers

1. Python coding interview examples

2. Java coding interview examples

3. C++ coding interview examples

4. Javascript coding interview examples

5. SQL coding interview examples

Practice with experts

Using coding interview examples is a key part of your interview preparation, but it isn’t enough.

If you have any friends or family who are engineers, practice with them as they'll be able to give some useful feedback. However, if you really want the best possible preparation for your coding interview, you'll also want to work with engineers who have experience running interviews at Google, Amazon, etc.

If you know anyone who fits that description, fantastic! But for most of us, it's tough to find the right connections to make this happen. And it might also be difficult to practice multiple hours with that person unless you know them really well.

Here's the good news. We've already made the connections for you. We’ve created a coaching service where you can do mock coding interviews 1-on-1 with interviewers from FAANG firms. Start scheduling sessions today!

 

Related articles:

Dynamic programming interview questions
Software engineeringNov 22, 2021
53 dynamic programming interview questions [easy, medium, hard]
53 dynamic programming interview questions, all with links to high-quality solutions, plus an interview preparation guide. Part 5 of our algorithms questions series to help you practice for your software engineer interview.
Read more
Hand holding phone displaying Google Maps route
Software engineeringNov 14, 2022
Google system design interview guide (questions, process, prep)
Everything you need to know about Google system design interviews, including the process, 45 sample questions, example answers, and an answer framework.
Read more
Google stall at an event in Cologne, Germany
Software engineeringJan 30, 2024
Google Software Engineer Interview (Questions, Process, Prep)
Comprehensive list of preparation facts and tips for the Google software engineering interviews. From the basics to the best success strategies.
Read more
Backtracking interview questions
Software engineeringDec 13, 2021
47 backtracking interview questions [easy, medium, hard]
47 backtracking interview questions, all with links to high-quality solutions, plus an interview preparation guide. Part 7 of our algorithms questions series to help you practice for your software engineer interview.
Read more
Stacks and queues interview questions with solutions
Software engineeringSep 13, 2021
50+ stacks and queues questions and solutions (easy, medium, hard)
50+ stacks and queues interview questions, all with links to high-quality solutions, plus a stacks and queues refresher and cheat sheet. Part 4 of our coding prep series to help you ace your software engineer interview.
Read more
Googler displaying Googleyness by drinking a coffee
Software engineeringAug 17, 2023
Googleyness & Leadership Interview Questions (+ how to impress)
Learn what Googleyness actually is, what kind of questions to expect and how to demonstrate Googleyness and leadership throughout your interviews.
Read more
Coding interview tips
Software engineeringFeb 15, 2023
21 coding interview tips from ex-interviewers
21 coding interview tips from ex-interviewers from Facebook, DocuSign, and Microsoft to help you get an offer. Learn how to optimize your preparation time, and get key tips for top performance during the interview
Read more
Linked list interview questions
Software engineeringSep 06, 2021
40+ linked list questions and solutions (easy, medium, hard)
40+ linked list interview questions, all with links to high-quality solutions, plus a linked list refresher and cheat sheet. Part 3 of our coding prep series to help you ace your software engineer interview.
Read more