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,026–1,050
Companies: Anthropic
Data Structure Design
Last reported Aug 2025
Build an iterator over unordered set, but the iterator operates over a snapshot of the set when the iterator was initialized (i.e. iterator is not…
Companies: Databricks
Last reported Aug 2025
Companies: OpenAI
Intervals & Scheduling
Last reported Jul 2025
Return the node values of a binary tree in inorder (left → root → right) sequence. The recursive solution is trivial; the follow-up asks for…
Companies: Anduril, Meta, Oracle
Binary Tree · Depth-First Search · Stack · Tree
Last reported Jul 2025
Design and implement a lottery system where each participant has a different probability of winning based on their assigned weight. Ensure that the system is…
Companies: Amazon, Meta
Last reported Jul 2025
Given a set of intervals, determine if all intervals have anything in common.
Companies: Google, Meta
Last reported Jul 2025
Companies: OpenAI
Data Structure Design
Last reported Jul 2025
Design a class that records timestamps for each tweet name and, given a frequency ("minute"/"hour"/"day") and a time range, returns the number of tweets in…
Companies: Ramp
Last reported Jul 2025
Given a sorted strictly increasing array with gaps, find the k-th missing integer that does not appear in the array. The core challenge is computing…
Companies: Meta
Last reported Jul 2025
Companies: OpenAI
Data Structure Design · Heaps & Priority Queues
Last reported Jul 2025
Companies: Anthropic
Data Structure Design
Last reported Jul 2025
Companies: OpenAI
Distributed Coordination · Fault Tolerance & Failover
Last reported Jul 2025
Companies: Anthropic
File & Media Storage · Operating Systems
Last reported Jul 2025
Find the largest integer k such that the array contains two adjacent length-k contiguous subarrays (one immediately following the other) that are both strictly increasing…
Companies: Google
Last reported Jul 2025
Write an iterative approach for the given binary string with wildcard "?" where the wildcard can be replaced with 0 or 1. Return all permutations…
Companies: Bloomberg
Last reported Jul 2025
Given a circle's radius and center, implement randPoint() to return random points uniformly distributed over the circle's area (including the boundary). The core challenge is…
Companies: Meta
Last reported Jul 2025
Design a stack-like data structure supporting push(val) and pop() where pop removes the most frequent element (breaking ties by recency, i.e., the one closest to…
Companies: Glovo
Last reported Jul 2025
Return all root-to-leaf paths of a binary tree as strings like "1->2->5"; this requires a simple DFS/backtracking traversal to build each path from root to…
Companies: Bloomberg, Justworks
Last reported Jul 2025
Given a string and two integers a and b, a substring is considered redundant if its length equals a * V + b * C…
Companies: Amazon
Last reported Jul 2025
Given a string containing '0', '1', and '!' characters, replace each '!' with either '0' or '1' to minimize the total weighted errors, where each…
Companies: Amazon
Last reported Jul 2025
Given cuboids whose dimensions can be permuted, pick and stack a subset so each cuboid above has all three dimensions <= the one below, maximizing…
Companies: Amazon
Last reported Jul 2025
Given a credit card number in string, write a function to find the credit card provider based on configuration specified.
Companies: Roo
Last reported Jul 2025