Interview questions
Find a company or topic. Read the sources, then practice.
Loading the question library…
Find a company or topic. Read the sources, then practice.
Loading the question library…
Showing 626–650
Companies: Anthropic
Concurrency · Memory Management
Last reported Apr 2026
Companies: OpenAI
Data Structure Design · Job Scheduling & Workflows
Last reported Apr 2026
Companies: OpenAI
Dynamic Programming · Simulation & State Machines
Last reported Apr 2026
Companies: Anthropic
Arrays & Strings
Last reported Apr 2026
Design a queue-like data structure that maintains items ordered by most-recent access, supporting operations to enqueue, dequeue/remove, and "touch" an item to move it to…
Companies: Google, Meta, Squarespace
Last reported Apr 2026
Design an algorithm to find the local minima in a given array. The solution should efficiently handle large arrays and multiple queries, similar to finding…
Companies: Meta
Last reported Apr 2026
Implement an in-memory Role-Based Access Control (RBAC) system that supports assigning permissions to roles and roles to users. The system should handle queries to determine…
Companies: Microsoft
Last reported Apr 2026
Given a list of towers, each defined by a center point and radius, determine if point A and point B are part of the same…
Companies: Liveramp
Last reported Apr 2026
Companies: Anthropic
Arrays & Strings
Last reported Apr 2026
Given a map of listing names to their available day numbers and a requested date range [startDay, endDay], return all valid stay options including single…
Companies: Airbnb
Last reported Apr 2026
Implement an LRU cache with a `put(byte[] photo)` method that persists a photo to memory and returns a generated unique ID (UUID), and a `get(String…
Companies: Microsoft
Last reported Apr 2026
Find the length of the longest contiguous subarray whose elements sum to k. Because the array can contain negatives (so two-pointer sliding window fails), this…
Companies: Goldman Sachs
Last reported Apr 2026
Rearrange the array in-place to produce the lexicographically next greater permutation (using only O(1) extra space); if no larger permutation exists, reorder it to the…
Companies: Amazon, Bloomberg, Meta, Microsoft
Array · Two Pointers
Last reported Apr 2026
Generate all distinct permutations of an array that may contain duplicate values. The core challenge is to exhaustively build permutations while avoiding duplicate results…
Companies: Microsoft
Last reported Apr 2026
Companies: Anthropic
Concurrency · Networking
Last reported Apr 2026
Given an unweighted graph and two nodes, find the shortest path between them. Return the minimum number of edges required to travel from the source…
Companies: LinkedIn
Last reported Apr 2026
Given source and target strings and a set of weighted directed character transformations (possibly with multiple edges), find the minimum total cost to turn each…
Companies: Microsoft
Last reported Apr 2026
Rearrange the array in-place so all zeros are moved to the end while preserving the relative order of non-zero elements, without using extra storage. Aim…
Companies: Amazon, Google, Meta, Microsoft
Array · Two Pointers
Last reported Apr 2026
Implement a language/country dropdown component that supports pinning specified items to the top of the list in a defined order. The remaining unpinned items should…
General practice
Last reported Apr 2026
Companies: OpenAI
Graphs · Grids & Matrices
Last reported Apr 2026
Given an array of building heights, return the indices of buildings that have an unobstructed view to the ocean on the right (i.e., no building…
Companies: Anduril, Meta
Array · Monotonic Stack · Stack
Last reported Apr 2026
Companies: OpenAI
Grids & Matrices · Simulation & State Machines
Last reported Apr 2026
Given a list of AI inference requests with arrival times and token counts, implement a batching strategy that groups requests to maximize throughput while respecting…
Companies: Microsoft
Last reported Apr 2026