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
- 793Design a file upload feature for an AI chat application.MediumCodingSystem design·
xAI - 794Implement a hashmap without using any libraries.HardCoding·
Apple, Goldman Sachs - 795Explain how to design and implement a password checker based on specific requirements.MediumCodingTechnical·
Peloton - 796Design an indexer and a retrieverMediumCoding·
Apple - 797Design a marketplace where freelancers bid on contract jobs with the lowest bid winning the contract.HardCoding·
Intuit - 798Explain the differences between an interface and an abstract class.MediumCodingTechnical·
Goldman Sachs, Microsoft - 799Sort a list of natural numbers and their squares in the most efficient way possible.MediumCoding·
Google - 800Explain malloc, calloc, and reelloc.MediumCodingTechnical·
Google - 801Explain the differences between stack and heap memory allocation.MediumCoding·
Apple, Microsoft - 802Find a local minima in an array Last UpdatedMediumCoding·
Meta - 803Given an array with objects colored red, white, or blue, sort them so those of the same color are adjacent. Use integers 0, 1, 2 to represent RWB respectively.MediumCoding·
Apple - 804Find the equilibrium index in an array where sum of elements to the left is equal to sum of elements to the right.MediumCoding·
Meta - 805Find the median from a data stream.MediumCoding·
Bloomberg - 806Find the first missing positive number in an array.HardCoding·
Amazon - 807Given a list of strings, find all strings that encode to the same value using a Caesar Cipher. (A Caesar Cipher rotates characters, e.g. in CC3: a->d, b->e, ..., z->c)MediumCoding·
Meta, Pinterest - 808Explain how to find a target sum in an array.MediumCoding·
Adobe, Google - 809Find the DuplicatesEasyCoding·
Adobe, Apple - 810Find a triplet in an array with a given sum.MediumCoding·
Adobe, Goldman Sachs - 811Given an array of numbers where every number occurs twice except one, how would you find the unique number in O(log n) time?MediumCoding·
Meta - 812Generate ParenthesesMediumCoding·
Adobe, Google - 813Given n houses in a line with money in each, find the maximum amount a robber can steal, without stealing from two adjacent houses.MediumCoding·
Adobe, Apple - 814Implement a circular buffer.MediumCoding·
Meta - 815Implement file searchMediumCoding·
Amazon - 816Implement a k-nearest neighbors algorithm.EasyCodingAI ML·
Amazon, Pinterest