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
78 questions
- 25Smallest Missing Integer Greater Than Sequential Prefix SumEasyCoding·
Walmart - 26Sort Array By ParityEasyCoding·
Meta - 27Sort Even and Odd Indices IndependentlyEasyCoding·
Meta - 28The Number of Users That Are Eligible for DiscountEasyCoding·
InfoEdge India Ltd - 29Ugly NumberEasyCoding·
Amazon - 30Write a function to check whether a string contains a substring.EasyCoding·
Nvidia - 31Find the DuplicatesEasyCoding·
Adobe, Apple - 32Implement a k-nearest neighbors algorithm.EasyCodingAI ML·
Amazon, Pinterest - 33Maximum ProfitEasyCoding·
Google - 34Most Common WordsEasyCoding·
Amazon - 35Move all zeros to the end of an array.EasyCoding·
Adobe, Amazon - 36Sort a binary array in linear time.EasyCoding·
Accenture, Apple - 37Calculate the height of a binary tree.EasyCoding·
Apple, Google - 38Count the number of ways to split a string.EasyCoding·
Google - 39Degrees of FriendshipEasyCoding·
Google - 40Explain the map function.EasyCoding·
Apple - 41Explain the sort function.EasyCoding·
Apple - 42Fibonacci NumbersEasyCoding·
Adobe, Google - 43Given 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 - 44Find the palindromes.EasyCoding·
Amazon, Apple - 45Find peak element in an arrayEasyCoding·
Apple - 46Given an array, find the two sum.EasyCoding·
Adobe, Amazon - 47Given two strings of equal length, determine if it's possible to form a palindrome by cutting them in half.EasyCoding·
Google - 48Monthly Post Success Analysis.EasyCodingData·
LinkedIn