practice a little every day, paws crossed ♡
Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 961–990 of 9403 results
- AndurilMediumSoftware EngineerFind Unreachable Objects in a Heap Graph
Implement a mark-phase reachability analysis for a heap graph starting from stack roots, returning unreachable heap addresses in their original order while handling cycles, self-references, and dangling pointers.
Coding & AlgorithmsTechnical Screengraphsbfs-dfshash-table - AndurilMediumSoftware EngineerMaximize Profit From Cutting Rods
This problem tests dynamic programming and optimization skills by requiring the calculation of the maximum profit obtainable from cutting a rod into integer-length pieces with given price values.
Coding & AlgorithmsTechnical ScreenDynamic ProgrammingOptimizationAlgorithms - AnrokMediumSoftware EngineerBatch Key Lookups Into One HTTP Request per 100 ms With Callbacks
A callback-based batching exercise: implement start_fetch(key, callback) so that lookups made within a 100 ms window are sent to a /get?keys= endpoint as one HTTP request, using only http_get_request and set_timeout. It tests timer scheduling, per-key callback bookkeeping and keeping overlapping in-flight batches apart on an event loop.
Software Engineering FundamentalsTechnical Screen - AnrokHardSoftware EngineerDesign async batched key-value fetcher
This question evaluates understanding of designing asynchronous, batched request handling in a single-threaded event-loop, covering batching windows, key deduplication, response-to-callback correlation, consistency boundaries, error handling, timeouts/retries, cancellation, and backpressure.
System DesignTechnical Screen - AnrokMediumSoftware EngineerExplain concurrency model preference
This question evaluates a candidate's understanding of concurrency models, practical experience with multithreading and asynchronous/callback-based programming, and the ability to analyze trade-offs for I/O-bound versus CPU-bound workloads.
Behavioral & LeadershipTechnical Screen - AnsysMediumSoftware EngineerImplement Prefix Search and Node Removal
This question evaluates proficiency in string data structures and manipulation (prefix-search concepts including case-insensitive matching and regex-based normalization) as well as linked list pointer manipulation and in-place node removal.
Coding & AlgorithmsTechnical Screen - AnthropicMediumSoftware EngineerA Conflict About Values
This question tests your ability to navigate professional disagreements where core values (e.g., speed vs. safety, or business goals vs. technical debt) are at odds, requiring a diplomatic yet principled resolution.
Behavioral & LeadershipOnsiteBehavioralConflict ResolutionLeadership - AnthropicMediumSoftware EngineerA Disagreement That Changed Your Mind
This question evaluates intellectual humility, evidence-based reasoning, and your ability to update your technical beliefs when presented with compelling counterarguments or data.
Behavioral & LeadershipOnsiteBehavioralCollaborationDecision Making - AnthropicMediumSoftware EngineerAI Risk Values Round: Delaying a Risky Breakthrough, Worthless Equity, Persuasion
A culture round at a safety-focused AI lab: whether you would delay a risky capability breakthrough even if competitors would not, what you would do if your equity became worthless, a time you were persuaded, and how you repaired a damaged working relationship. It tests reasoning about AI risk, honesty and self-awareness.
Behavioral & LeadershipOnsite - AnthropicMediumSoftware EngineerAI Safety Culture Round: Risk Views, Personal Ethics, and Changing Your Mind
A senior software engineer culture interview at an AI company that probes your honest views on AI safety risks, how your personal moral principles hold up when acting on them has a cost, and whether you can genuinely change your mind. It tests candor over sycophancy, calibrated reasoning, and composure when the interviewer challenges your position.
Behavioral & LeadershipOnsite - AnthropicMediumSoftware EngineerAccount Balance with Expiring Grants
Design a data structure that tracks time-limited credit grants, prioritizes consuming grants that expire earliest, and efficiently manages expired funds.
Coding & AlgorithmsOnsiteHeapGreedyDesign - AnthropicMediumSoftware EngineerAnswer AI Safety Behavioral Prompts
This question evaluates behavioral and leadership competencies for a software engineering role, including alignment with organizational values, ethical judgment on AI safety, communication, mentorship, and influence on project and product decisions within the Behavioral & Leadership domain.
Behavioral & LeadershipOnsite - AnthropicMediumSoftware EngineerAnswer Culture and Project Questions
This question evaluates a software engineer's behavioral competencies—ownership, judgment, communication, and values alignment—by prompting story-driven examples about past projects, difficult tradeoffs, and motivation for joining an AI safety–oriented research organization.
Behavioral & LeadershipOnsite - AnthropicHardSoftware EngineerAnswer culture-fit reflection questions
This question assesses a candidate's ability to demonstrate intellectual humility, accountability, and the capacity for self-directed growth in high-stakes technical environments.
Behavioral & LeadershipOnsiteAccountabilitySelf-AwarenessGrowth-Mindset - AnthropicMediumSoftware EngineerAnswer general fit and AI safety questions
Answer general fit and AI safety questions evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Behavioral & LeadershipOnsite - AnthropicMediumSoftware EngineerApply bitwise tricks for performance
This question evaluates proficiency with bitwise operations, branchless programming, low-level performance optimizations, and microarchitectural reasoning about pipeline stalls, instruction-level parallelism, and cache behavior.
Coding & AlgorithmsOnsite - AnthropicHardSoftware EngineerAssess an AI Research Organization and Explain Your Fit
Tests a candidate's understanding of frontier AI research labs, their ability to critically evaluate safety-driven operational decisions, and how well their engineering background aligns with safety-focused development.
Behavioral & LeadershipHR ScreenAI SafetyCulture FitBehavioral - AnthropicMediumSoftware EngineerBanking System Simulation
This question evaluates a candidate's ability to design a stateful, multi-level simulation system that processes a time-ordered stream of operations. It tests object-oriented design, incremental complexity management, and handling of deferred effects like scheduled cashback credits. Such object-modeling questions are commonly used in coding interviews to assess practical application of data structures under evolving requirements.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerBatch Image Resize and Rotate with Pillow: Exact Dimensions, Parallelism, Bad Files
A three-part Python image processing exercise: resize and rotate images with Pillow while predicting the exact printed dimensions, speed up a large batch with multiprocessing and a staged pipeline, then keep the batch running through corrupt, oversized and unsupported files. It tests API precision, parallelism and robustness.
Software Engineering FundamentalsOnsite - AnthropicHardSoftware EngineerBatch-Apply Pillow Image Transforms, Then Parallelize: Processes vs Threads
A Python coding exercise that applies a given sequence of Pillow transforms to a folder of cat images and then asks you to cut the total processing time. It tests clean per-image code, reasoning about CPU-bound work and the GIL, choosing between processes and threads, and sizing a worker pool.
Software Engineering FundamentalsOnsite - AnthropicMediumMachine Learning EngineerBrainstorm How to Keep an AI Model Aligned With Its Intended Goals
Anthropic Fellows final-round practice: a 15-minute open discussion on defining, detecting and training against misalignment and misuse, ending with one falsifiable experiment.
Machine LearningOnsiteAnthropic FellowsAI Safety Fellowshipai-safety - AnthropicHardSoftware EngineerBuild a Progressive Banking Ledger
Design and implement an in-memory, timestamped banking ledger supporting atomic transfers, cashback, scheduled payments, account merges with alias resolution, and historical balance lookups.
Coding & AlgorithmsOnsitedesignheapbinary-search - AnthropicHardSoftware EngineerBuild a Progressive Cloud Storage System
Design and implement an in-memory cloud storage engine supporting user quotas, file operations, compression/restoration semantics, and glob-based search.
Coding & AlgorithmsOnsiteData StructuresSystem DesignOOP - AnthropicHardSoftware EngineerBuild a Progressive Employee Tracker
Design an in-memory attendance and payroll tracking system that manages shift lifecycles, deferred rate promotions, overlapping bonus windows, and duration rankings.
Coding & AlgorithmsOnsiteIntervalsBinary SearchObject-Oriented Design - AnthropicMediumSoftware EngineerBuild a Resize-and-Rotate Image Pipeline with Multiprocessing
Design a Pillow resize-and-rotate pipeline with explicit transform semantics, bounded multiprocessing, per-image failures, and safe output publication.
Software Engineering FundamentalsOnsite - AnthropicMediumSoftware EngineerBuild a concurrent web crawler
This question tests your ability to design a concurrent crawler that manages shared state across multiple threads, handles URL de-duplication, and prevents infinite cycles during graph traversal.
Coding & AlgorithmsTechnical ScreenConcurrencyMultithreadingGraph Traversal - AnthropicHardSoftware EngineerBuild a least-recently-used cache
This problem tests your ability to implement an efficient LRU cache using a combination of a hash map and a doubly linked list to achieve constant-time operations.
Coding & AlgorithmsOnsiteData StructuresHash MapLinked List - AnthropicHardSoftware EngineerCalculate Streaming Token Usage Costs
Implement a robust token usage billing manager that accumulates streaming chunk deltas and non-streaming totals, enforces strict schema and sanity checks, and avoids floating-point precision loss.
Coding & AlgorithmsOnsiteAlgorithmsData StructuresSystem Design - AnthropicMediumSoftware EngineerCompare Threads and Processes for Image Processing
Tests operating system concurrency fundamentals, memory ownership models, IPC serialization overhead, and empirical benchmarking strategies for CPU-bound image processing pipelines.
Software Engineering FundamentalsOnsiteconcurrencyoperating-systemsperformance - AnthropicHardSoftware EngineerCompute Exclusive Time from Stack Events
Compute aggregate exclusive execution time for each function from nested start and end events, including recursive calls. Use a stack over a validated single-threaded trace, apply half-open time intervals, and return deterministic sorted results.
Coding & AlgorithmsOnsite