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

  1. 1Climbing StairsEasyCoding· Media.net
  2. 2Merge two sorted listsEasyCoding· Intuit, Oracle
  3. 3Linked List CycleEasyCoding· CCognitree
  4. 4Write a function to check whether a string contains a substring.EasyCoding· Nvidia
  5. 5Find the DuplicatesEasyCoding· Adobe, Apple
  6. 6Maximum ProfitEasyCoding· Google
  7. 7Most Common WordsEasyCoding· Amazon
  8. 8Move all zeros to the end of an array.EasyCoding· Adobe, Amazon
  9. 9Sort a binary array in linear time.EasyCoding· Accenture, Apple
  10. 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
  11. 11Calculate the height of a binary tree.EasyCoding· Apple, Google
  12. 12Count the number of ways to split a string.EasyCoding· Google
  13. 13Degrees of FriendshipEasyCoding· Google
  14. 14Explain the map function.EasyCoding· Apple
  15. 15Explain the sort function.EasyCoding· Apple
  16. 16Fibonacci NumbersEasyCoding· Adobe, Google
  17. 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
  18. 18Find the palindromes.EasyCoding· Amazon, Apple
  19. 19Find peak element in an arrayEasyCoding· Apple
  20. 20Given an array, find the two sum.EasyCoding· Adobe, Amazon
  21. 21Given two strings of equal length, determine if it's possible to form a palindrome by cutting them in half.EasyCoding· Google
  22. 22Reverse a SentenceEasyCoding· Adobe, Apple
  23. 23Reverse a linked list.EasyCoding· Adobe, Apple
  24. 24Find the smallest missing element from a sorted array.EasyCodingTechnical· Meta