Article

Binary search is a common algorithm that you need to know for your coding interview. But what if the array isn't just in regular sorted order?

Article

Article

Coding Interview Question: Find the median of two sorted arrays. Click for the solution.

Article

Coding Interview Question: Given a list of items, find the maximum value you can generate from the items. Click for the solution.

Article

Coding Interview Question: Given a matrix, find the path from top left to bottom right with the greatest product. Click for the solution.

Article

Coding Interview Question: Given an array of integers where each value 1 <= x <= len(array), write a function that finds all the duplicates in the array. Click for the solution.

Article

Coding Interview Question: Given an unsorted array, find the length of the longest sequence of consecutive numbers in the array. Click for the solution.

Article

Coding Interview Question: Given a matrix, update it so that if any cell is true, all the cells in that row and column are true. Click for the solution.

Article

Coding Interview Question: Given a 2D array of 1s and 0s, find the largest square subarray of all 1s. Click for the solution.

Article

Coding Interview Question: Given k sorted arrays, merge them into a single sorted array. Click for the solution.

Article

Coding Interview Question: Given an sorted n x m array, write a function to determine whether the array contains an element x. Click for the solution.

© Byte by Byte 2016-2022

Get fully prepared for your Coding Interview and **save 20%** with Exponent. Learn More →

Sounds impossible right? It’s not!

Let me show you the RIGHT way to study for interviews so you can ace your Google Interview without breaking a sweat.

Download my FREE guide to the 50 most common coding interview questions asked at companies like Google, Facebooks, and Amazon.