Interview Questions

Follow Us! We publish exclusive firsthand interview questions!
Airbnb Coding Interview Questions
Google Coding Interview Questions
Meta Coding Interview Questions
Amazon Coding Interview Questions
Linkedin Coding Interview Questions
Uber Coding Interview Questions



Given a matrix noted as 0 or 1, return the shortest distance to the boundary. The definition of boun

Find out all broken connections in the data center...

Implement a function to get the books of a given genre...

Given k days and array P as the item sizes, find out the minimum total container size required to mo

You task is to build a line chart for the server load change through time, given a sequence of load

Given a string S and a list of key terms, return a string with the key terms surrounded by tags...

A 10 x 10 board is filled with randomly placed gems. A match occurs when 3 or more gems of the same

Delete a given list of nodes from a binary tree and return the roots of all remaining (sub)trees aft

Given a 2d array with two rows, find out the number of non-empty subarrays filled with 0. A subarray

Build a function to check whether an IPv4 address is a bot in the black list. The robot ip black lis

Given an array of integer, find out the number of non-empty subarrays filled with 0...

Find out the disjointed elements of two arrays. The disjointed elements are those that remain after

Online Judege Demo. Currently support Python and Java.

Given a schedule of N buses departure time and the capacity of bus, find out the latest time you may

Given a string S of lowercase letters, you need to find as many as substrings from the S that meets

Given a string S of lowercase letters, partition S into as many as parts so that one letter only app

Given a binary tree, find out every tree node where its value equal to the average of all nodes in t

Find out the minimum number of routers to cover the full range of array...

Find out the length of longest monotonic path starting from any node to its descendent node in a bin

In an array of integer, array[i] denotes the error rate of server i. An alert gets triggered when fo

Find out the length of longest monotonic path starting from the root node of a binary search tree...

Given a chat log, find out the top K users who text the most words in total...

Given a sorted array of integers and a target number, return the count of the target number.

Your server has received a package of N incoming requests. Handling the K-th request (for K from 0 t

Design a data structure to return the next word in the dictionary...

Given two lists of intervals, each interval denoted as [start, end], find the intersection (overlapp

Find the longest diameter of a m-ary tree.

Given an undirected graph, find out all the vertices when removed will make the graph disconnec

Given a 2D grid, each cell is either a zombie or a human. Zombies can turn adjacent (up/down/left/ri

Find critical connections in a data center...

Your server has received a package of N incoming requests. Handling the K-th request (for K from 0 t

Given an array of integers representing the value of coupons, return the minimum number of consecuti

Given a string str and an integer k, you need to rearrange the string in a way that the same charact

Implement the following class to keep track of the first unique number in a data stream.

Given the bank currency exchange rate table, find out the best currency exchange rate from currency

Given the bank currency exchange rate table, find out if it’s possible to exchange from currency .

Given a two 2D integer array, find the max score of a path from the upper left corner to bottom righ

Given a two 2D integer array, find the max score of a path from the upper left corner to bottom righ

Given a n*n  2D array. Fill the integer from 1 to n*n to this 2D array that makes the sum of each

Given a M-ary tree, find the subtree with maximum average. Return the root of the subtree.

Given a BST, and an integer k, cut the BST vertically into two substrees A and B, where all nodes in

A pizza shop offers n pizzas along with m toppings. A customer plans to spend around x coins. The cu

Given a binary tree and a list of nodes say [n1, n2, .. nk], write a program to find the least comm

You are given a huge number of IPs in a list. Remove all duplicated addresses from the list.

Given an int n, return all possible representations of n in Fibonacci base.

Design and implement the Least Recently Used Cache with TTL(Time To Live)

Given a String, find the minimum number of deletions required to convert it into a palindrome.

Given an array of numbers, remove the increasing sequences until there is no change.

Given an integer n, return the representations in Fibonacci base for the integer from 1 to n.

Given a binary grid where 0 represents water and 1 represents land. An island is surrounded by water

Normal palindrome is defined as a string that reads the same backwards as forwards, for example "abc

Given an input string representing one word, write a method that returns the start and end indices o

Given an integer N which represents number of edges, where bases are always 2.Find how many trapezoi

Given an array return an integer indicating the minimum number of swap operations required to sort t

Given a run-length encoded string s and a width of a board. Assume that the board is filled from lef

Given 2 run-length encoded strings s and t. Determine if they represent the same string.

There are n students [0, ..., n-1] participate in a marathon. You are given an int array standings w

Given an encoded string str, return true if and only if this string contains the specified secret wo

Given 2 strings pin and guess. Write a function to provide a hint that indicates how digits in guess