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

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