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
32 questions
- 1Climbing StairsEasyCoding·
Media.net - 2Merge two sorted listsEasyCoding·
Intuit, Oracle - 3Linked List CycleEasyCoding· CCognitree
- 4Write a function to check whether a string contains a substring.EasyCoding·
Nvidia - 5Find the DuplicatesEasyCoding·
Adobe, Apple - 6Maximum ProfitEasyCoding·
Google - 7Most Common WordsEasyCoding·
Amazon - 8Move all zeros to the end of an array.EasyCoding·
Adobe, Amazon - 9Sort a binary array in linear time.EasyCoding·
Accenture, Apple - 10You're trying to take a photograph of two teams arranged in rows. How would you order them so shorter players are in front and taller players are behind?EasyCodingTechnical·
Anduril - 11Calculate the height of a binary tree.EasyCoding·
Apple, Google - 12Count the number of ways to split a string.EasyCoding·
Google - 13Degrees of FriendshipEasyCoding·
Google - 14Explain the map function.EasyCoding·
Apple - 15Explain the sort function.EasyCoding·
Apple - 16Fibonacci NumbersEasyCoding·
Adobe, Google - 17Given an array 'nums' with n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.EasyCoding·
Accenture - 18Find the palindromes.EasyCoding·
Amazon, Apple - 19Find peak element in an arrayEasyCoding·
Apple - 20Given an array, find the two sum.EasyCoding·
Adobe, Amazon - 21Given two strings of equal length, determine if it's possible to form a palindrome by cutting them in half.EasyCoding·
Google - 22Reverse a SentenceEasyCoding·
Adobe, Apple - 23Reverse a linked list.EasyCoding·
Adobe, Apple - 24Find the smallest missing element from a sorted array.EasyCodingTechnical·
Meta