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
88 questions
- 49Build a Basic Regex ParserHardCoding·
Adobe, Apple - 50Given a list of conversion items between symbols, write an algorithm to return the conversion ratio for each pair of symbols.HardCodingTechnical·
Snap - 51Design a banking system to facilitate account creation, deposits, transfers, and listing the most active accounts by total monetary activity, with commands entered via parsing CSV/JSON.HardCoding·
Capital One - 52Implement a hashmap without using any libraries.HardCoding·
Apple, Goldman Sachs - 53Design a marketplace where freelancers bid on contract jobs with the lowest bid winning the contract.HardCoding·
Intuit - 54Find the first missing positive number in an array.HardCoding·
Amazon - 55Design and implement an in-memory key-value store that supports set, transactional begin, commit, and abort operations.HardCoding·
OpenAI, xAI - 56Implement LRU Cache.HardCoding·
Accenture, Adobe - 57Merge k sorted linked lists.HardCoding·
Adobe, Apple - 58Given two strings (Word 1 and Word 2) and a list of valid words from a dictionary, return the minimum number of operations required to convert Word 1 to Word 2.HardCoding·
Airbnb - 59Given a string of parentheses types and an array of their efficiency ratings, write a function to find the most efficient valid parentheses sequence that can be formed. Return its total efficiency score.HardCoding·
Amazon - 60Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.HardCoding·
Google - 61Session Data Analysis.HardCodingTechnical·
Amazon - 62Write a query to find all dates where the stadium had three or more consecutive days with attendance of 100 or more people.HardCodingData·
Amazon - 63Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.HardCoding·
Adobe, Apple - 64Sudoku SolverHardCoding·
Adobe, Apple - 65Calculate the trapped rainwater between bars in a given array.HardCoding·
Adobe, Amazon - 66Calculate the number of times a pattern appears in a string.HardCoding·
LinkedIn - 67Given an array of points on a plane (x,y), write a function to return the distance between the closest pair of points.HardCoding·
Visa - 68Edit distanceHardCoding·
Adobe, Amazon - 69Find Monthly Revenue GrowthHardCodingData·
Uber - 70Implement a red-black tree.HardCoding·
Apple - 71Top Salaries by DepartmentHardCodingData·
Tesla - 72Employee HierarchyHardCodingData