practice a little every day, paws crossed ♡
Software Engineer 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 301–330 of 2629 results
- AnthropicMediumSoftware EngineerDetect n-length consecutive sequences
This question evaluates a candidate's competency in algorithm design and data-structure reasoning for detecting n-length consecutive integer sequences, encompassing handling of duplicates, negative values, and dynamic insertions and deletions.
Coding & AlgorithmsTechnical Screen - AnthropicMediumSoftware EngineerDetect runs and answer suffix queries
This question evaluates proficiency in array processing, run-length detection, algorithmic complexity analysis, and the use of range/suffix data structures within the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - AnthropicMediumSoftware EngineerFind Duplicate Files
This question evaluates a candidate's skills in file-system traversal, content deduplication strategies, hashing, large-file I/O handling, concurrency, and robustness to errors and file changes during scans.
Coding & AlgorithmsOnsite - AnthropicHardSoftware EngineerFind Duplicate Files by Content
This question evaluates the ability to parse file-system-style input, group files by identical content, and manage deduplication using appropriate data structures and algorithms.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerFind and remove duplicate files
This question evaluates the ability to design scalable file deduplication algorithms, specifically testing knowledge of hashing strategies, collision handling, memory and I/O optimization, handling very large files, incremental/resumable operation, and complexity and trade-off analysis.
Coding & AlgorithmsOnsite - AnthropicHardSoftware EngineerFind duplicate files and apply image operations
This question evaluates skills in string parsing and content-based grouping for duplicate file detection, along with matrix manipulation for image operations like horizontal flips and box blur, covering competencies in algorithm design, data-structure selection, and numerical array transformations.
Coding & AlgorithmsTechnical Screen - AnthropicMediumSoftware EngineerFind the Slowest Function from Profiler Events
This question evaluates the ability to interpret time-ordered profiler event logs, compute inclusive and exclusive function runtimes, reason about call-stack semantics, and recognize anomalies such as recursion, cycles, missing end events, or non-returning functions.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerFix a Corrupted Bootloader Instruction
Simulate a virtual machine's instruction set, detect an infinite loop cycle, and find the single instruction modification (between jmp and nop) that allows the program to terminate normally.
Coding & AlgorithmsTechnical Screensimulationgraphdepth-first-search - AnthropicMediumSoftware EngineerGenerate Function Profiling Events from Stack Samples
Generate function start and end events from timestamped stack samples, including independently debounced frames across consecutive samples. Address transient appearances and absences, changing stack suffixes, shared timestamps, deep stacks, end-of-input behavior, complexity, and online processing.
Coding & AlgorithmsTechnical Screen - AnthropicMediumSoftware EngineerGenerate outputs for images and pipelines
This question evaluates algorithmic and systems engineering skills related to batch image processing, parallelization, I/O versus CPU trade-offs, and deterministic output association within the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - AnthropicMediumSoftware EngineerImplement Parallel Image Processing
This question evaluates competency in concurrent and parallel processing, practical image manipulation with Python libraries (Pillow), resource management for memory and file I/O, robust error handling, and performance measurement.
Coding & AlgorithmsOnsite - AnthropicHardSoftware EngineerImplement Persistent Memoization LRU Cache
This problem tests your ability to design a decorator that memoizes function results using an LRU policy while ensuring the cache survives process restarts via disk serialization.
Coding & AlgorithmsOnsitePythonLRU CacheDecorator - AnthropicMediumSoftware EngineerImplement Python LRU cache with args and persistence
This question evaluates a candidate's ability to design and implement an LRU cache in Python that supports variable-length positional and keyword arguments with canonical, deterministic hashing for semantically equivalent calls and O(1) get/put via a hash map plus a doubly linked list; it falls under the Coding & Algorithms domain and primarily tests practical implementation skills, API robustness, hashing/equality subtleties, and algorithmic complexity guarantees. The persistence follow-up evaluates understanding of serialization and storage design — on-disk formats, versioning, and atomic write strategies — and compares trade-offs between binary pickle and JSON-based serialization in terms of security, compatibility, and performance, reflecting both conceptual design and practical system-level considerations.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerImplement Python LRU cache with varargs
This question evaluates a candidate's ability to implement an LRU caching mechanism in Python, including decorator design, argument canonicalization for positional args, *args, and **kwargs, handling unhashable inputs, eviction semantics, cache metadata operations (clear, cache_info), and JSON-based persistence and versioning.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerImplement Task Management and Duplicate Detection
This problem tests your ability to design an in-memory task management system with concurrency-aware state tracking and implement an efficient file-deduplication routine using hashing.
Coding & AlgorithmsTechnical ScreenData StructuresHashingConcurrency - AnthropicMediumSoftware EngineerImplement a Banking System
This question evaluates skills in designing and implementing a stateful in-memory banking system, covering account modeling, transfer lifecycle and expiration handling, balance management, and tracking aggregate outgoing amounts.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerImplement a Batch Image Processor
Design and implement an in-memory image transformation engine that applies sequential operations (grayscale, brightness scaling, nearest-neighbor resizing) over a batch of images efficiently.
Coding & AlgorithmsTechnical ScreenParallelismMultiprocessingImage Processing - AnthropicMediumSoftware EngineerImplement a Least-Recently-Used Cache
This question evaluates a candidate's ability to design and implement an efficient in-memory cache with eviction behavior, testing understanding of data structure selection, state management, and time/space complexity under capacity constraints.
Coding & AlgorithmsOnsite - AnthropicHardSoftware EngineerImplement a Longest-Match Tokenizer
Design and implement a greedy longest-match text tokenizer that validates vocabulary, supports configurable unknown-token coalescing, and emits token IDs alongside their exact substring matches.
Coding & AlgorithmsOnsitetriestringnlp - AnthropicMediumSoftware EngineerImplement a Parallel Image Processor
Design and implement a concurrent batch image processor that executes a sequence of matrix transforms across worker threads or processes while isolating per-job failures.
Coding & AlgorithmsTechnical Screenconcurrencymultithreadingfault-tolerance - AnthropicHardSoftware EngineerImplement a Time-Aware Task Manager
Design an in-memory task manager supporting per-user task versioning, time-to-live (TTL) expiration, and point-in-time historical queries.
Coding & AlgorithmsTechnical ScreenBinary SearchData StructuresDesign - AnthropicHardSoftware EngineerImplement a hierarchical file store
This problem tests your ability to design a hierarchical file system data structure and implement operations for directory traversal, file manipulation, and path normalization.
Coding & AlgorithmsOnsiteTreeTrieData Structures - AnthropicMediumSoftware EngineerImplement an in-memory DB with TTL backup/restore
Implement an in-memory nested key-value store supporting field-level time-to-live (TTL) expiration and snapshot backup/restore operations.
Coding & AlgorithmsOnline Assessmentdata-structuresdesignhash-map - AnthropicMediumSoftware EngineerImplement crawler, dedup, and persistent LRU
This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Implement crawler, dedup, and persistent LRU states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerImplement file deduplication at scale
Implement streaming file deduplication that filters by size, fingerprint and hash, then compares bytes to rule out hash collisions. It covers large-file chunking, batched disk I/O, parallelizing across cores or machines, a dry-run report, and hard links that never cross devices. Follow-ups turn it into a command-line tool that handles symbolic links, unreadable files, error cases, and options to move or delete duplicates.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerImplement hostname-restricted web crawler
This question evaluates skills in graph traversal and cycle detection, hostname-based filtering, URL parsing, and basic network error handling. Commonly asked in Coding & Algorithms interviews, it assesses algorithmic reasoning about traversal strategy and complexity (time and space) analysis while balancing conceptual understanding with practical implementation details.
Coding & AlgorithmsTechnical Screen - AnthropicHardSoftware EngineerImplement staircase printing and distributed mode/median
This set of problems evaluates implementation correctness and attention to formatting for a staircase-printing routine alongside distributed-algorithms reasoning for computing a global mode/median, testing algorithmic thinking, I/O handling, synchronization, and communication-cost trade-offs in the Coding & Algorithms domain.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerImplement thread-safe blocking queue
This question evaluates competency in concurrent programming, synchronization primitives, and implementation of thread-safe bounded blocking queues within the Coding & Algorithms domain.
Coding & AlgorithmsOnsite - AnthropicMediumSoftware EngineerIn-Memory Key-Value Database with Nested Transactions
Design an in-memory key-value store supporting nested transactions with begin, commit, rollback, get, set, and delete operations.
Coding & AlgorithmsOnsiteData StructuresStackDesign - AnthropicMediumSoftware EngineerLRU Cache
This question tests the ability to combine a hash map and a doubly linked list to implement an LRU cache with O(1) performance for both get and put operations.
Coding & AlgorithmsOnsiteHash MapDoubly Linked ListDesign