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
- Find time in two people’s calendar for a meeting (by Clement Mihailescu)
- Remove islands from a 2D array (by Clement Mihailescu)
- Reverse a LinkedList (by Clement Mihailescu)
- Find the missing element from an array (by interviewing.io)
- Find how many coins you're going to give back as change (by interviewing.io)
- Edit distance string comparison (by interviewing.io)
- Product of array except for self (by Exponent)
- Serialize and deserialize a list of strings (by Exponent)
- Amazon Kindle Object Oriented Design (by freeCodeCamp)
- Detect plagiarized book in library (by freeCodeCamp)
- Design a class to insert, remove and get a random value (by Neetcode)
- Create a unit converter (e.g. km to miles) (by Jane Street)
2. Java coding interview examples
- Binary Search Tree (BSD) successor search (by Keep on Coding)
- Print the left view of a binary tree (by Exponent)
- Find the duplicate number in an array without changing (by Exponent)
- Solve the order statistic of an unsorted array problem (by interviewing.io)
- Find the most frequent integer in an array (by interviewing.io)
- Find the first non repeating character in a string (by Nick White)
- Rotate an image / matrix (by Nick White)
- Find the first duplicate in an array (by Nick White)
- Pancake sorting (by Pramp)
- Create a function to calculate the nth root of a number (by Pramp)
- Find the smallest substring of all characters in an array (by Pramp)
- Find four numbers in an array that sum up to S (by Pramp)
3. C++ coding interview examples
- Determine minimum number of flights to connect all airports (by Clement Mihailescu)
- Determine number of rectangles formed by coordinates on a 2d plane (by Clement Mihailescu)
- Find the apartment that minimzes the farthest distance to places of interest (by Clement Mihailescu)
- Split the pie string into favorite numbers in an array (by Clement Mihailescu)
- Find the minimum number of edges to disconnect a graph (by Keerti)
- Count the number of arrangements in which no guest is wearing the same cap (by Keerti Purswani)
- Find the smallest substring of all characters (by Keep On Coding)
- Find the closest coin on a grid (by interviewing.io)
- Find the missing element from an array (by interviewing.io)
4. Javascript coding interview examples
- Find the longest common subsequence of two strings (by interviewing.io)
- Create a regular expression evaluator (by interviewing.io)
- Determine if a word is in a dictionary (by DonTheDeveloper)
- Determine the point value for a word in a set of titles (by DonTheDeveloper)
- Decrypt / Encrypt a message (by Pramp)
- Find the smallest non-negative number not in an array (by Pramp)
- Capitalize every other letter in a string (by Tech with Nader)
- Multiple smaller React questions (by Ben Awad)
- Multiple smaller JS questions (by Ben Awad)
5. SQL coding interview examples
- Create a daily report to track campaign performance (by Jay Feng)
- Get the daily distribution of the number of conversations in a messaging app (by Jay Feng)
- Calculate the average order size (by DataInterview)
- Measure user churn (by DataInterview)
- Segment influencers (by DataInterview)
- Calculate the revenue of each department (by Exponent)
- Find employees who earn more than their manager (by Exponent)
- Count the number of successful posts by user type (by Exponent)
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!