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