Question bank
4,310 interview questions, answered.
Reference answers, what the interviewer is really testing, how it is graded, and the follow-ups that come next.
Easy 190Medium 2,498Hard 982
Filters · onDifficulty, topic, company
1,063 questions
- 937Implement a doubly linked list.MediumCoding·
Anduril, Apple - 938Implement a red-black tree.HardCoding·
Apple - 939Given a list of jobs and a list of dependencies where each job depends on another job being completed first, determine if it is possible to complete all jobs.MediumCoding·
Oracle - 940Find the longest common prefix given two integer arrays.MediumCoding·
Amazon - 941Given 2 strings, return the longest common substring.MediumCoding·
Salesforce - 942Given an array of n integers and a number k, find the maximum number of elements whose sum is less than k, and return their sum.MediumCoding·
Goldman Sachs - 943Print the maximum positive sequence in a given array.MediumCoding·
Amazon - 944What percentage of users who were active on Messenger yesterday made a video call yesterday?MediumCodingData·
Meta - 945Given a binary array where an operation cycles a row's elements to the left or right, return the minimum number of operations needed to create a column of 1s. If not possible, return 0.MediumCoding·
Palantir - 946Given positions of N kids and M ice cream sellers on a 1D line, find the smallest distance E such that every kid lies within the range [P - E, P + E] of at least one seller.MediumCoding·
Google - 947Monthly Post Success Analysis.EasyCodingData·
LinkedIn - 948Implement inorder traversal for an N-ary tree.MediumCoding·
Amazon - 949Given an array, print the Next Greater Element (NGE) for each element. The NGE for an element x is the first greater element on the right side of x in the array, or -1 if none exists.MediumCoding·
Amazon - 950Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding·
Adobe, Amazon - 951Determine if a number is a power of two.MediumCoding·
Salesforce - 952Write a function to return all prime numbers up to a given number n.MediumCoding·
Adobe, Apple - 953Write a function to print 1 to n without using a loop.EasyCoding·
Nvidia - 954Solve an interval scheduling problem by finding “free time” intervals to accept queries.MediumCoding·
Scale AI - 955Implement a queue using stacks.MediumCoding·
Goldman Sachs - 956Review the given code for a React.js based Tic-tac-toe game written in Typescript and suggest improvements.MediumCoding·
MongoDB - 957Remove Duplicate EmailsMediumCodingData·
IBM - 958Given a head node of a linked list, delete k-th node from the end of the list.MediumCoding·
Meta - 959Given the row and column, return the value at that position in Pascal's triangle.MediumCoding·
Goldman Sachs - 960Reverse a SentenceEasyCoding·
Adobe, Apple