READ. UNDERSTAND. PRACTICE.
Coding questions
Explore algorithm tutorials, coding and system design questions, interview experiences, and computer science study guides.
1,899 resources · Page 42 of 80
Coding questions · Anthropic
Generate 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 questions · Amazon
Generate primes up to n efficiently
This question evaluates algorithm design and complexity analysis for prime generation, focusing on sieving techniques and time-space trade-offs when producing primes up to large n.
Coding questions · Amazon
Generate Synthetic Clickstream Data with Python Function
This question evaluates a candidate's ability to implement synthetic data generation and probabilistic event simulation in Python using libraries like pandas and numpy, emphasizing timestamp handling, random sampling, and feature engineering for clickstream records.
Coding questions · DoorDash
Generate the next lexicographic array arrangement
This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Generate the next lexicographic array arrangement states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Coding questions · Apple
Generate Tower of Hanoi moves
This question evaluates understanding of recursion, algorithmic problem decomposition, and analysis of time complexity when generating constrained move sequences.
Coding questions · LinkedIn
Generate uniform 0–6 from biased coin
This question evaluates understanding of randomized algorithms, probability theory, and techniques for extracting uniform randomness from a biased source.
Coding questions · Stripe
Generate user notifications from schedules
This question evaluates skills in data manipulation and integration, including schema design, merging event and user profile data, recurring event handling, timezone and locale-aware conversions, conflict resolution, and data validation using SQL and Python.
Coding questions · DoorDash
Generate Weekly Revenue and Engagement Summary with Pandas
This question evaluates proficiency in data manipulation and analytics with Pandas and SQL, covering aggregations, distinct purchase counts, lambda-based user-tier classification, and platform-level conversion-rate computation.
Coding questions · Anthropic
Greedy Longest-Match Tokenization of a String Against a Fixed Vocabulary
Tokenize a string against a fixed vocabulary by repeatedly taking the longest vocabulary entry that matches at the current position, and return the token IDs in order. It tests exact greedy semantics, efficient prefix matching over up to 100,000 characters, and careful handling of overlapping vocabulary entries.
Coding questions · Amazon
Grid Reachability for a Robot That Cannot Reverse and Has Restricted Turns
Decide whether a robot on a grid with blocked cells can travel from a start cell to a destination when it may never reverse direction and may only make the turns it is allowed. It tests modeling movement rules as a state space that includes the heading, and searching that space correctly on grids up to 200 by 200.
Coding questions · Capital One
Grid State After a Given Number of Days of Spoilage Spreading to Neighbors
A grid holds empty cells, fresh items and spoiled items, and each day spoilage spreads from every spoiled item to its edge-adjacent fresh neighbors. Given the grid and a number of days that may be very large, return the grid after exactly that many days. It tests simultaneous multi-source spreading, day-by-day timing, and unreachable cells.
Coding questions · J.P. Morgan
Group anagrams and count string in grid
This question evaluates algorithmic problem-solving skills in string processing, hashing/grouping and grid traversal/backtracking, along with the ability to analyze time and space complexity and trade-offs.
Coding questions · Amazon
Group Anagrams Without Sorted Character Signatures
Group anagrams without sorting each word's characters, preserving repeated words and reasoning about frequency signatures and overflow-prone encodings.
Coding questions · Meta
Group Binary Tree Nodes by Vertical Column, Top to Bottom and Left to Right
Return a binary tree's node values grouped by vertical column from left to right, ordering each column top to bottom and breaking ties within a row by left-to-right position. The tree arrives as a level-order list, and the task tests coordinate tracking during traversal and precise tie handling.
Coding questions · Applied Intuition
Group duplicate files by content
This question evaluates understanding of file deduplication, efficient I/O and hashing strategies, streaming large-file processing, and scalable algorithm design for identifying files with identical byte-for-byte contents.
Coding questions · Vercel
Group Tree Nodes into Layers from the Leaves Up to the Root
Given a rooted tree described as an undirected edge list, return its nodes in layers from the leaves up to the root, where each node sits one layer above its highest child and each layer is sorted. It tests rooting a tree from a graph, bottom-up ordering, and handling very deep, path-shaped trees.
Coding questions · Netflix
Group users by same last K watched movies
This question evaluates competency in set operations, grouping via maps/dictionaries, and algorithmic complexity analysis when comparing suffixes of ordered lists.
Coding questions · Glean
Group Words into Transitive Synonym Sets by Shared Two-Words-Before-and-After Context
Given a list of sentences, treat two words as synonyms when they share the same two words before and two words after, close the relation transitively, and return every synonym group in a canonical sorted order. Tests context hashing, union-find or connected components, and exact output formatting.
Coding questions · Snapchat
Handle cards, islands, Trie, median
These problems evaluate proficiency in core data structures and algorithmic problem-solving, covering grouping/counting techniques, grid-based island detection, trie (prefix tree) design, and streaming median computation within the domain of data structures and algorithms.
Coding questions · Uber
Handle invalid Lisp expression parsing
This question evaluates the ability to parse and evaluate nested Lisp-like expressions, manage variable bindings and scope resolution, and detect malformed input and syntax errors.
Coding questions · Meta
Handle palindrome & decimal addition
This question evaluates string manipulation and numeric representation skills, specifically handling decimal-point addition with arbitrary precision and reasoning about palindrome/permutation properties.
Coding questions · Akuna Capital
Heapify an array into a max-heap
This question evaluates understanding of heap data structures and the in-place bottom-up heapify algorithm for building a max-heap on a 0-indexed array, testing skills in array manipulation, heap invariants, and algorithmic reasoning.
Coding questions · Virtu
Heaviest Plate Subset Within a Barbell Capacity, Up to 42 Plates
Choose a subset of up to 42 barbell plates, each used at most once, so the total weight is as large as possible without exceeding the barbell's capacity. Tests picking an approach that fits a small plate count but weights and a capacity of up to one billion.
Coding questions · Harvey
Highlight Whole-Word Matches and Merge Overlapping Spans
Highlight exact whole-word phrases, reject partial-word matches, merge overlapping text spans, and insert tags without shifting search positions.