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:

messages subpub system design interview
Software engineeringFeb 14, 2023
Queues and pub-sub: system design interview concepts (9 of 9)
This guide defines queues and pub-sub, how they work, and when you should use them in a system. This is the 9th of 9 foundational system design interview concepts that we're covering on our blog.
Read more
Amazon software development manager interview
Software engineeringNov 16, 2022
Amazon SDM interview (questions, prep, process)
Complete guide to Amazon software development manager interviews (also applies to AWS). Learn the interview process, practice with example questions, and learn key prep tips.
Read more
person doing a code review
Software engineeringSep 11, 2024
How to crack the Google Code Review interview
Prepare to ace your Google code review interview with this comprehensive guide. Learn more about code review interviews and how Google conducts them, best interview practices, and resources to help you prepare.
Read more
System design interview tips
Software engineeringJan 11, 2022
19 system design interview tips from FAANG ex-interviewers
19 system design interview tips from ex-interviewers at Amazon and Google 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
Greedy algorithm interview questions
Software engineeringNov 29, 2021
50 greedy algorithm interview questions
50 greedy algorithm interview questions, all with links to high-quality solutions, plus an interview preparation guide. Part 6 of our algorithms questions series to help you practice for your software engineer interview.
Read more
The google logo in neon
Software engineeringOct 10, 2023
6 Google resume examples (+ tips on optimizing for Google)
6 real examples of resumes that worked for Google. Plus, all the info you need to optimize your resume/CV for Google, including tips, a checklist and a step-by-step guide.
Read more
tree interview questions and answers
Software engineeringSep 17, 2021
50+ tree questions and solutions (easy, medium, hard)
50+ tree interview questions, all with links to high-quality solutions, plus a tree refresher and cheat sheet. Part 5 of our coding prep series to help you ace your software engineer interview.
Read more
50+ heap interview questions and cheat sheet
Software engineeringOct 07, 2021
50+ heap interview questions and cheat sheet
50+ heap interview questions, all with links to high-quality solutions, plus a heaps refresher and cheat sheet. Part 8 of our coding prep series to help you ace your software engineer interview.
Read more