hard Interview Questions
23 interview questions in our bank cover hard, most of them Coding & Leetcode-style Questions. They average 4.0/5 difficulty — hard — and each one was reported by a candidate after a real interview. Companies known to ask about hard: Optiver, ByteDance, Two Sigma, xAI, Netflix, and 5 more.
Practice these on the problems board →Companies that ask about hard
Question mix
- Coding & Leetcode-style Questions20
- System Design for ML2
- ML Fundamentals & Algorithms1
Difficulty
- 4/5 — hard23
Questions tagged hard
QR Statistics / Domain Knowledge Oral
4/5This rigorous interview evaluation from Two Sigma focuses on advanced mathematical reasoning and probability theory. Designed as an oral whiteboard session, it tests your ability to fluently derive concepts related to stochastic processes, regression analysis, and expected values. Interviewers look for deep theoretical comprehension rather than superficial memorization. Prepare yourself thoroughly for this challenging quantitative tier by accessing our complete study materials and expert guidance through a subscription.
ML Fundamentals & AlgorithmsTwo SigmaDistributed Matrix Multiplication — DP and FSDP
4/5This advanced infrastructure coding assessment from xAI explores the principles of distributed model training by simulating device communication for matrix operations. Candidates must build both data-parallel and fully sharded strategies to handle heavy computational workloads across multiple nodes effectively. To unlock the full problem description, architectural insights, and the reference code, a subscription is required.
Coding & Leetcode-style QuestionsxAISquirrel Nut Storage Tracker
4/5This intricate object-oriented programming assessment from Optiver asks you to simulate a complex storage management system featuring tiered capacities and expiration tracking. You will need to implement precise inventory rules governing how items are deposited, maintained, and retrieved under layered weight constraints and cascading overflow mechanics. The challenge examines your software engineering discipline and class design skills. Gain access to the full problem text, architectural requirements, and verified solution by subscribing today.
Coding & Leetcode-style QuestionsOptiverBasic Calculator
4/5Reported as a coding challenge at Netflix, this problem requires you to parse and evaluate mathematical expressions containing nested parentheses and unary operators without relying on native evaluation utilities. It tests your proficiency with stack-based parsing algorithms and string manipulation under strict constraints. Reviewing the complete prompt and optimal algorithmic solution requires a subscription.
Coding & Leetcode-style QuestionsNetflixHand-Code Self-Attention and Cross-Entropy
4/5Conquer a rigorous machine learning coding challenge frequently seen in ByteDance interview processes by implementing core deep learning components from scratch. You will be tasked with writing scaled dot-product attention in NumPy and deriving the binary cross-entropy loss function mathematically, alongside oral questions on architectural layers. This exercise examines your mathematical rigor and ability to translate theoretical formulations into stable vector operations. Access the comprehensive problem breakdown and ideal reference implementation with a subscription.
Coding & Leetcode-style QuestionsByteDanceHuffman-Style Binary Encode / Decode
4/5Master data compression techniques by developing a compression and decompression utility inspired by Huffman encoding, previously featured in interviews at Two Sigma. This challenge evaluates your ability to build hierarchical frequency structures and translate textual data into compact bit streams while adhering to precise rules. Candidates must carefully handle tree construction logic and byte manipulations to successfully pass the evaluation. Access the complete problem description and an optimized reference solution with a paid subscription.
Coding & Leetcode-style QuestionsTwo SigmaMock-LLM Inference Engine — Dynamic Batching
4/5Reported as an xAI machine learning infrastructure interview question, this challenge involves building a dynamic batching scheduler for model inference. You must manage a waiting queue that refills completed sequence slots in real time, ensuring accurate mapping between requests and generated tokens without state corruption. This test evaluates your systems engineering, concurrency management, and inference optimization skills. To view the complete prompt and production-grade solution, a subscription is required.
Coding & Leetcode-style QuestionsxAINews Aggregation / Subscription System
4/5This rigorous online assessment task, frequently administered by Optiver, centers on engineering a sophisticated news aggregation and subscription engine. Developers must design a system capable of registering customized topic alerts with interest boundaries, enforcing strict per-second rate limits, and processing continuous timestamped data streams efficiently. Success hinges on mastering sliding-window algorithms and priority queue management under tight performance constraints. Access to the comprehensive specification, architectural patterns, and verified optimal solution requires a paid platform subscription.
Coding & Leetcode-style QuestionsOptiverFirst Missing Positive
4/5This classic coding assessment, frequently encountered in Goldman Sachs interviews, challenges you to identify the smallest missing positive integer in an unsorted collection of numbers. The problem tests your mastery of in-place array manipulation, constant auxiliary space complexity, and clever index-mapping techniques to achieve linear time performance. To view the full problem statement, algorithmic analysis, and thoroughly commented model code, a paid subscription is required.
Coding & Leetcode-style QuestionsGoldman SachsContent Moderation System Design
4/5This ByteDance system design problem focuses on engineering a high-throughput platform for screening user-generated media in real time. The exercise examines your capability to architect scalable machine learning inference pipelines, manage review queues, and maintain strict latency SLAs for massive daily upload volumes. View the comprehensive architecture blueprint and expert analysis with a paid subscription.
System Design for MLByteDanceC++ Project Debugging with AI Tools
4/5In this NVIDIA technical evaluation, applicants tackle a multi-stage software debugging challenge across an extensive codebase filled with logical defects and memory management flaws. The assessment tests your troubleshooting proficiency and collaboration with modern developer assistants under strict time constraints. Accessing the complete problem breakdown and expert resolution requires a subscription.
Coding & Leetcode-style QuestionsNVIDIAMaximum Independent Set on a Tree
4/5Examine this classic graph theory challenge featured in software engineering interviews at Two Sigma. The task involves finding the largest possible subset of nodes within a hierarchical network such that no two chosen elements share a direct connection. This problem tests your expertise in dynamic programming on trees and optimizing independent sets under structural constraints. Working through this scenario enhances your ability to design efficient algorithms for complex relationship networks. The complete problem statement and model solution require a subscription.
Coding & Leetcode-style QuestionsTwo SigmaAgent Tool-Use System Design (AML Volcano Engine)
4/5Explore this advanced machine learning system design question reported during a research scientist interview at ByteDance. The challenge focuses on constructing robust tool-use architectures for autonomous agents, examining how to handle long execution trajectories, evaluate multi-step outcomes effectively, manage large tool catalogs, and mitigate operational failure modes like infinite loops and timeouts. Master the strategies behind modern agentic workflows to build reliable systems at scale. Access the complete architectural breakdown and expert reference solution by unlocking a subscription.
System Design for MLByteDanceOptiCargo — Cargo-to-Flight Scheduling
4/5Encountered during rigorous hiring loops at Optiver, this complex logistics and scheduling challenge tests your capability to parse extensive pre-written codebases and implement sophisticated resource allocation strategies. You must build an engine that assigns cargo loads to flights while strictly adhering to strict departure schedules, plane capacities, and divisibility rules. The evaluation measures your code comprehension, greedy algorithmic thinking, and ability to optimize large-scale simulation models under time pressure. The complete problem statement and polished codebase solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsOptiverSatellite Message Propagation
4/5This Optiver coding challenge simulates a complex satellite communication network where messages propagate through a graph with specific delay and routing rules. Candidates must model message forwarding hierarchies, timing constraints, and feedback reporting order using robust object-oriented design and graph algorithms. The problem tests advanced simulation techniques and careful handling of tie-breaking scenarios in real-time systems. Access the full problem details and model solution by subscribing.
Coding & Leetcode-style QuestionsOptiverTransaction Settlement (Minimum Transfers)
4/5This Pinduoduo interview question challenges you to simplify a complex web of monetary debts among a group of people down to the fewest possible individual payouts. The problem tests your advanced graph theory and backtracking techniques, specifically resembling the NP-hard subset sum or graph partitioning domains. Finding the optimal set of settlement transactions requires pruning search states effectively to handle larger inputs. To access the full problem details and examine the model solution, please subscribe.
Coding & Leetcode-style QuestionsPinduoduoCodeSignal SWE OA (Spring 2026 Bank)
4/5This ByteDance technical assessment featured on CodeSignal challenges candidates with a diverse set of algorithmic tasks ranging from memory management simulation to subarray parity counting. You will navigate through multiple distinct problems testing your data structure manipulation, interval logic, and procedural coding speed under time pressure. Reviewing these multi-part screening problems helps refine your ability to tackle diverse software engineering assessment formats. Unlock the complete problem set and verified solutions with a subscription.
Coding & Leetcode-style QuestionsByteDanceMaximum Product Path in a Complete Directed Graph
4/5Reported as a rigorous technical assessment for Two Sigma, this graph theory challenge asks you to determine a unique path across a complete directed structure that maximizes the total product of edge weights without revisiting nodes. It tests advanced algorithmic concepts, including logarithmic transformations to convert multiplicative objectives into additive ones, alongside dynamic programming with bitmasking. Access to the full problem text, complexity analysis, and verified model solution requires a subscription.
Coding & Leetcode-style QuestionsTwo SigmaFirst Missing Positive
4/5A classic array manipulation puzzle frequently asked in Netflix interviews, this problem challenges you to discover the smallest missing positive integer in an unsorted collection. The core difficulty lies in achieving this feat under strict linear time efficiency without allocating extra auxiliary memory. It tests your mastery of in-place data rearrangement and index mapping techniques. Access to the complete problem description and the optimized reference solution requires a subscription.
Coding & Leetcode-style QuestionsNetflixOptimal Execution with a Broker Backstop
4/5This advanced Optiver coding problem presents an optimal stopping challenge framed around sequential purchasing decisions under uncertainty. Candidates must determine the ideal strategy to acquire multiple units of an asset while balancing random market fluctuations against a limited number of fallback options provided by a broker. This task assesses your command of dynamic programming and expected value calculations in a high-frequency trading context. The complete problem statement, mathematical formulation, and optimal solution are available exclusively to paid subscribers.
Coding & Leetcode-style QuestionsOptiverShortest Palindrome
4/5This Reddit interview challenge evaluates your ability to transform an arbitrary sequence into a palindrome by prepending the fewest possible characters. Candidates must devise an efficient string-matching or pattern-finding algorithm to identify the optimal prefix extension without resorting to brute force. This problem thoroughly tests your comprehension of string symmetry and linear-time parsing strategies. Access to the full problem description and expert model solution requires a subscription.
Coding & Leetcode-style QuestionsRedditAlien Dictionary
4/5This classic Meta interview challenge asks you to deduce the correct alphabetical sequence of an unfamiliar language by analyzing a lexicon of words sorted according to its unique rules. Candidates must construct a dependency graph from adjacent word comparisons and perform a topological sort to uncover the valid character order or detect invalid cycles. This problem tests your graph modeling skills and cycle detection techniques under constraints. The comprehensive problem guide and clean model solution are restricted to paid subscribers.
Coding & Leetcode-style QuestionsMetaCodeSignal ML / Research Scientist OA (10-Problem Battery)
4/5This rigorous ByteDance assessment battery for research scientist candidates evaluates both theoretical machine learning knowledge and practical algorithmic implementation. Spanning ten distinct challenges, the test covers classification metrics, decision tree criteria, manual neural network forward passes, and building clustering algorithms from scratch. It is designed to thoroughly examine your foundational understanding of statistical learning and robust coding skills. Unlock the complete question list and detailed solutions by securing a paid subscription.
Coding & Leetcode-style QuestionsByteDance
Studied alongside
hard interview FAQ
- How many hard interview questions are there?
- 23 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask hard questions?
- Optiver (5), ByteDance (5), Two Sigma (4), xAI (2), Netflix (2), Goldman Sachs (1), NVIDIA (1), Pinduoduo (1).
- How hard are hard questions?
- They average 4.0 out of 5: 23 at 4/5.