Algorithm Interview Questions
14 interview questions in our bank cover Algorithm, most of them Coding Questions. They average 3.2/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Algorithm: OpenAI, Google, Mobile, Alibaba, CrowdStrike, and 2 more.
Practice these on the problems board →Companies that ask about Algorithm
Question mix
- Coding Questions11
- Mobile Engineering (Android/iOS)3
Difficulty
- 3/5 — medium11
- 4/5 — hard3
Algorithm questions at OpenAI
Data Labeling Task Scheduler
3/5Designed around a complex scheduling scenario reported at OpenAI, this coding task requires building a fair allocation engine for multi-party workflows involving models, humans, and specific tasks. You will implement robust distribution logic that satisfies strict quota limits, workload balancing thresholds, and uniqueness constraints across various participation phases. This problem thoroughly tests advanced greedy allocation, state management, and constraint satisfaction techniques. Access to the full problem text and complete model solution requires a subscription.
Coding QuestionsOpenAIIP Address / CIDR Iterator
3/5Design a robust network address iterator capable of parsing IP ranges and CIDR blocks while supporting bi-directional traversal and membership checks, featured in interviews at OpenAI. The problem unfolds incrementally through multiple implementation stages, testing your ability to handle boundary conditions, numerical conversions, and iterator protocols cleanly. It evaluates your knack for writing modular, self-consistent code that scales with evolving requirements. Read the full multi-part problem description and examine the clean solution code with a subscription.
Coding QuestionsOpenAIMemory Allocator
3/5A design question about managing a fixed pool of addresses. You build a component that hands out contiguous ranges on request, takes them back, and reports how much space is left and how large the biggest free range is.
Coding QuestionsOpenAIShard Rebalance / Overlapping Key Range
3/5Solve a distributed systems puzzle focusing on dynamic range allocation and shard rebalancing, highlighted in recent engineering interviews at OpenAI. Your task involves maintaining a collection of keyed intervals, handling insertions and deletions, and executing a rebalance routine to cap maximum overlaps while minimizing data movement. This problem challenges your algorithmic thinking regarding interval sorting, gap filling, and efficient resource partitioning. Access the full problem details and expert solution architecture by subscribing today.
Coding QuestionsOpenAI
Algorithm questions at Google
Gate Entry / Exit Time Resolution with Tie-Break Rules
4/5A coding question about a one-lane gate that serves people wanting to enter or leave, where a state-dependent preference decides who goes first when several are waiting. It tests careful simulation and avoiding work proportional to idle time.
Coding QuestionsGoogleMinimize the Maximum Cell on a Grid Path
4/5A coding question on routing through a numeric grid where a path is judged by its single worst cell instead of the total. You must find the route whose largest value is smallest, which exercises weighted-graph reasoning on a 2D map. A subscription is needed to see the full statement and a model solution.
Coding QuestionsGoogleSliding Window with Exclusions
3/5A coding question on moving a fixed-width window across an integer array and, at each position, averaging what is left after dropping the largest few values. It defines tie handling, windows wider than the array, and the precision expected of each average.
Coding QuestionsGoogle
Algorithm questions at Mobile
Fixed-Capacity In-Memory Image Cache
3/5A coding question on building a fixed-size in-memory store for decoded images that makes room for a new entry by dropping the one that has gone unused the longest. It asks for lookup and insert operations, and an update of an existing entry counts as a use.
Mobile Engineering (Android/iOS)MobileMerge Overlapping Analytics Sessions
3/5A mobile engineering question about collapsing time windows recorded by an analytics SDK into non-overlapping sessions. Inputs arrive unsorted, windows can nest or touch at an endpoint, and the output must be ordered by start time.
Mobile Engineering (Android/iOS)MobileDebounce a Search-Box Keystroke Stream
3/5Master a classic client-side engineering problem frequently encountered in mobile development roles by implementing a trailing-edge debounce mechanism for an interactive search keystroke stream. The objective is to process a chronological list of input timestamps and determine the exact moments network triggers should fire after user typing pauses for a designated interval. This exercise evaluates your understanding of asynchronous event handling, stream transformations, and timing logic essential for responsive application design. Secure full access to the comprehensive problem explanation and code solution with a subscription.
Mobile Engineering (Android/iOS)Mobile
More Algorithm questions
Identify Bad Nodes in Network
4/5In this technical challenge reported from Alibaba, you must isolate faulty components within a distributed network using batch testing procedures. Given a set of elements and a verification oracle that flags the presence of any compromised unit, the goal is to categorize every node accurately while optimizing query efficiency under strict concurrency limits. This puzzle evaluates advanced algorithmic design, divide-and-conquer strategies, and resource management. Access to the full problem description, complexity analysis, and optimal solution requires a subscription.
Coding QuestionsAlibabaShuffle a Deck of 52 Cards
3/5Practice a classic randomization challenge reported during interviews at CrowdStrike, which asks you to fairly rearrange a standard collection of unique elements. The core task is to build a uniform permutation approach where every possible arrangement has an identical chance of occurring. This exercise evaluates your grasp of randomized algorithms, efficiency, and statistical fairness. Access the complete breakdown, complexity analysis, and verified model implementation through a paid subscription.
Coding QuestionsCrowdStrikeCount Strongly Connected Components Using Kosaraju's Algorithm
3/5Count the groups of nodes in a directed graph where every member can reach every other, using the two-pass transpose technique by name. Asked at Expedia, the question names the algorithm, so the interviewer is checking whether you know why the second pass works on the reversed graph in finishing order. You will produce the finishing order first, traverse the transpose, and handle nodes that stand alone as their own group. A subscription unlocks the complete problem and the reference implementation.
Coding QuestionsExpediaRanked-Choice Voting (Instant Runoff)
3/5Simulate a preferential voting system frequently discussed in engineering interviews at LinkedIn. This algorithmic challenge involves tracking multi-round ballot preferences, systematically eliminating underperforming candidates, and redistributing votes until a clear majority emerges. The exercise examines your ability to manage complex state transitions, handle tie-breaking edge cases, and write robust simulation code. Review the complete specification, structural requirements, and optimized source code by obtaining a full subscription.
Coding QuestionsLinkedIn
Studied alongside
Algorithm interview FAQ
- How many Algorithm interview questions are there?
- 14 reported questions, mostly Coding Questions.
- Which companies ask Algorithm questions?
- OpenAI (4), Google (3), Mobile (3), Alibaba (1), CrowdStrike (1), Expedia (1), LinkedIn (1).
- How hard are Algorithm questions?
- They average 3.2 out of 5: 11 at 3/5, 3 at 4/5.