READ. UNDERSTAND. PRACTICE.
Coding questions
Explore algorithm tutorials, coding and system design questions, interview experiences, and computer science study guides.
1,899 resources · Page 55 of 80
Coding questions · Pinterest
Insert Plus or Times Between Ordered Numbers to Reach a Target, Evaluated Left to Right
Decide whether placing a plus or times operator between every pair of adjacent numbers, kept in their original order, can produce a target value when the expression is evaluated strictly left to right. Tests careful handling of evaluation order, operator choices, and the size of the search space.
Coding questions · Microsoft
Insert Spaces to Rebuild a Sentence from Dictionary Words
A coding question that asks you to insert spaces into a string that lost them so that every piece is a dictionary word, returning the smallest valid sentence or None when no split exists. It tests string segmentation with dictionary lookups, handling of impossible inputs, and a canonical tie-breaking rule.
Coding questions · Verkada
Intersect Motion Threshold Periods Across Cameras
Find maximal motion periods for one camera or the simultaneous intersection across many piecewise-constant camera streams. The prompt defines exact integer timestamps, threshold scaling, last-reading horizon, undefined prefixes, inclusive endpoints, and deterministic interval ordering for portable console verification.
Coding questions · ByteDance
Intersect Two Sorted Lists of Disjoint Intervals
Intersect two sorted lists of disjoint closed intervals in linear time, retaining one-point endpoint overlaps and advancing whichever current interval ends first.
Coding questions · LinkedIn
Inverse-Depth Weighted Sum of a Nested Integer List
Compute a weighted sum over a nested list of integers given in bracket notation, where integers closer to the top level weigh more and the deepest ones weigh one. Tests parsing nested structure, tracking depth, handling empty lists and negative values, and keeping the work to a single pass.
Coding questions · Waymo
Is the Segment From 0 to 50 Fully Contaminated After Each Landing Point?
Points land one at a time on the segment from 0 to 50, each contaminating an interval of length 1 around it; after each landing, report whether the whole segment is contaminated. Tests interval union maintenance, exact boundary handling and efficient updates.
Coding questions · Meta
Join datasets and compute conversion by assignment
This question evaluates data manipulation skills around time-based joins, event attribution, deduplication, and conversion metric computation within the Data Manipulation (SQL/Python) domain.
Coding questions · Karat
Join tables to map userId to name
This question evaluates a candidate's skills in relational data joining, data integration, and numeric reconciliation for mapping userId to customerName across multiple tables.
Coding questions · Microsoft
Keep Stable Unique Column Names Across Schema Changes
Maintain stable case-insensitive unique column names across additions, removals, reordering, reappearance, and natural suffix collisions, with independent table histories.
Coding questions · Vanta
Keep the First Occurrence of Every Globally Unique Line
Remove repeated lines globally while preserving first-occurrence order, exact case, spaces, and empty lines.
Coding questions · Atlassian
Label game performance by margin
This question evaluates proficiency in data manipulation and transformation by mapping numeric score margins to categorical labels and implementing vectorized operations in pandas as well as idiomatic R data-frame workflows.
Coding questions · Meta
Label new vs old users over time in SQL
This question evaluates a candidate's ability to perform time-based user labeling and aggregation in SQL, testing skills such as date arithmetic, joins, deduplication of user-day records, and efficient generation of per-user-per-day labels.
Coding questions · OpenAI
Leftmost-Fit Memory Allocator: Allocate Consecutive Units and Free by Owner
Simulate a memory allocator over n units: each allocation takes the leftmost run of consecutive free units for an owner, and each free releases all of that owner's units. Return the result of every operation. It tests interval bookkeeping and logarithmic-time search for free runs at up to 100,000 operations.
Coding questions · eBay
Length of the Longest Contiguous Subarray Summing to a Target
Given an integer array that may contain negative numbers and a target k, return the length of the longest contiguous subarray whose sum equals k, or 0 when none exists. Tests reasoning about subarray sums with mixed signs and handling large inputs efficiently.
Coding questions · ByteDance
Lexicographically Smallest Course Order From Prerequisite Pairs
A graph problem that asks for an order in which to take n courses given prerequisite pairs, returning the lexicographically smallest valid order, or an empty list when a cycle makes every order impossible. It tests dependency ordering, cycle detection and a deterministic tie rule.
Coding questions · Wex
List All Permutations of an Alphanumeric String in Digit, Lowercase, Uppercase Order
A coding problem that asks for every distinct permutation of a short string of digits, lowercase letters and uppercase letters, returned in a custom order where digits rank first, then lowercase, then uppercase. It tests permutation generation, duplicate handling and ordering that differs from default string comparison.
Coding questions · Pinterest
List All Plus/Times Expressions Reaching a Target Under Operator Precedence
Return every expression formed by placing plus or times between adjacent numbers, kept in order, that equals a target under standard operator precedence. Results are sorted lexicographically, testing enumeration of operator choices and correct handling of multiplication binding tighter than addition.
Coding questions · PDT Partners
List All Positive Divisors of an Integer in Ascending Order, Then Beat Square-Root Time
Given a positive integer up to one trillion, return every positive divisor in ascending order, each listed once. The task tests divisor enumeration, correct handling of perfect squares and 64-bit values, and a follow-up asking whether the running time can grow more slowly than the square root of n.
Coding questions · Point72
List Departments with Student Counts Including Zero
This question evaluates proficiency with relational aggregation and join operations for counting related records across tables. It is commonly asked to assess understanding of SQL joins and grouping within the Data Manipulation (SQL/Python) domain and tests practical application of handling absent relationships rather than purely conceptual theory.
Coding questions · Amazon
List Top Customers and Monthly Order Counts in SQL
This question evaluates a candidate's ability to perform SQL aggregation, grouping, top‑N selection, and date-based summarization to compute customer spend and chronological monthly order counts.
Coding questions · Reddit
Load and prepare JSON for modeling
This question evaluates competency in data preprocessing and validation for machine learning—enforcing correct data types, encoding categorical variables, detecting missing values, and assessing class balance.
Coding questions · Oscar
Longest Chain of Linked Names in a Directed Acyclic Graph
A graph coding question: given directed pairs of names that together form an acyclic graph, return the number of names in the longest chain that follows the pairs in order. It tests building an adjacency structure from string pairs and computing the longest path in a directed acyclic graph efficiently on large inputs.
Coding questions · ByteDance
Longest Contiguous Substring in Which No Character Repeats
A string problem that asks for the length of the longest contiguous substring in which no character repeats. It tests telling substrings apart from subsequences, exact case-sensitive character handling, and an efficient pass over strings of up to 100,000 printable characters.
Coding questions · Intuit
Longest Meeting-Free Business-Hours Block per Employee and Day
Find each employee’s longest meeting-free business-hours interval using clipped attendance, merged overlaps, complete day coverage, and SQL window logic.