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 1,001–1,025
Given m houses (some already painted and cannot be repainted) and n colors with painting costs, paint the remaining houses to produce exactly target contiguous…
Companies: LinkedIn
Last reported Aug 2025
Given a grid maze where a ball, once rolled, continues in a direction until it hits a wall, determine whether the ball can reach and…
Companies: Meta, Salesforce
Last reported Aug 2025
Companies: Anthropic
File & Media Storage
Last reported Aug 2025
Companies: Anthropic
Data Structure Design · Trees
Last reported Aug 2025
Companies: Anthropic
Data Structure Design
Last reported Aug 2025
Companies: Anthropic
Arrays & Strings
Last reported Aug 2025
Find the length of the shortest contiguous subarray of positive integers whose sum is at least a given target (return 0 if none exists). This…
Companies: Bloomberg, Meta, Toast
Array · Binary Search · Prefix Sum · Sliding Window
Last reported Aug 2025
On a tree rooted at 1, compute the probability that a frog performing a non‑backtracking random walk—each second uniformly jumping to an unvisited neighbor or…
Companies: Meta
Last reported Aug 2025
Given a dictionary of root words and a sentence, replace each word by the shortest root that is a prefix of it (if any) and…
Companies: Uber
Last reported Aug 2025
Companies: OpenAI
Data Structure Design · GPU Infrastructure
Last reported Aug 2025
Companies: OpenAI
Data Structure Design
Last reported Aug 2025
Implement a function that converts a Markdown-formatted string into its equivalent HTML representation. Handle common Markdown constructs such as headers (# H1, ## H2), bold…
Companies: Oracle
Last reported Aug 2025
Companies: OpenAI
Dimensional Modeling
Last reported Aug 2025
Companies: OpenAI
Binary Search
Last reported Aug 2025
Companies: OpenAI
Last reported Aug 2025
Companies: Anthropic
Data Structure Design
Last reported Aug 2025
Companies: OpenAI
Data Structure Design · Heaps & Priority Queues
Last reported Aug 2025
Given piles you can split but not merge, find the largest integer x such that you can form at least k piles of size x…
Companies: Meta
Last reported Aug 2025
Companies: OpenAI
Intervals & Scheduling
Last reported Aug 2025
Given a nested dictionary, flatten it into a single-level dictionary where nested keys are combined into one key (e.g., joined by a separator such as…
Companies: Meta
Last reported Aug 2025
Companies: Citadel
Last reported Aug 2025
Companies: Uber
Last reported Aug 2025