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

  1. 889Given a list of words, find the number of prefix pairs, i.e. pairs i, j where words[i] == words[j] or words[i].startswith(words[j]) or words[j].startswith(words[i]).MediumCoding· Capital One
  2. 890Find the number of users who called three or more people in the last week.MediumCodingData· Meta
  3. 891Given a string, return the number of vowel substrings ('a', 'e', 'i', 'o', 'u') that include all five vowels.MediumCoding· Oracle
  4. 892Count the number of ways to split a string.EasyCoding· Google
  5. 893Custom Sort StringMediumCoding· Meta
  6. 894Implement a decode and encode function of a general N-ary tree.MediumCoding· Google
  7. 895Degrees of FriendshipEasyCoding· Google
  8. 896Build an image carousel that displays a sequence of images (using React.js or vanilla JS).MediumCoding· Amazon
  9. 897Design a data structure that supports insert, delete, search, and retrieve in constant time.MediumCoding· Meta
  10. 898If you have a vector with many values, mostly zeroes, how would you design a data structure to represent it?MediumCodingTechnical· WWhatsApp
  11. 899Design and implement a ranked cache system.MediumCodingSystem design· LinkedIn
  12. 900Design LFU cache.MediumCodingSystem design· Microsoft
  13. 901Design a queue using static memory allocation.MediumCoding· Intuit
  14. 902Design a task scheduler in Python.MediumCoding· Google, OpenAI
  15. 903Detect cycle in graphMediumCoding· Amazon
  16. 904Determine if a given binary tree is a binary search tree (BST).MediumCoding· Adobe, Google
  17. 905How can you tell if a graph is not a tree?MediumCodingTechnical· Amazon
  18. 906Given a list of integers, return 1 if the integer is a power of 2 and 0 if it is not.MediumCoding· Snap
  19. 907Determine if two sentences are similar.MediumCodingTechnical· Google
  20. 908Edit distanceHardCoding· Adobe, Amazon
  21. 909Explain callback functions.MediumCodingTechnical· Nvidia
  22. 910Explain the filter function.MediumCoding· Apple
  23. 911Explain the map function.EasyCoding· Apple
  24. 912Explain multithreading.MediumCoding· Microsoft, Nvidia