practice a little every day, paws crossed ♡
Coding & Algorithms 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 1441–1470 of 1706 results
- StripeMediumSoftware EngineerValidate transactions with risk rules and reporting
Implement an end-to-end transaction validation pipeline that parses raw CSV records, evaluates behavioral fraud detection rules, and outputs a formatted fixed-width audit report.
Coding & AlgorithmsTechnical Screenstringsdata-parsingsliding-window - StripeMediumSoftware EngineerVerify business accounts with progressive KYC rules
Implement a multi-tier KYC verification function that validates business identity inputs against format requirements and an official registry using token-based normalization.
Coding & AlgorithmsTechnical ScreenStringsData ValidationParsing - SupioEasySoftware EngineerCompute max planes shot and session count
These questions evaluate algorithmic problem-solving skills: the first focuses on greedy scheduling and time-step simulation to maximize actions before deadlines while the second tests event aggregation, sorting and grouping logic for sessionization.
Coding & AlgorithmsTechnical Screen - TCSMediumData ScientistFind duplicates in a list efficiently
This question evaluates a candidate's ability to design efficient algorithms for duplicate detection, occurrence counting, and preserving first-occurrence order while reasoning about time and space complexity across in-memory, in-place, and streaming data scenarios.
Coding & AlgorithmsTechnical Screen - TekionMediumSoftware EngineerFind the Maximum Number of Active Loans
This problem tests the ability to solve interval overlap challenges using the sweep-line algorithm, specifically handling boundary conditions where a loan ends at the exact time another begins.
Coding & AlgorithmsTechnical ScreenSweep-lineIntervalsSorting - TekionMediumSoftware EngineerMaximize Profit with at Most K Transactions
This problem tests dynamic programming optimization by finding the maximum profit from stock trading with a constraint on the total number of allowed transactions.
Coding & AlgorithmsTechnical ScreenDynamic ProgrammingAlgorithmsOptimization - TemporalMediumSoftware EngineerImplement Concurrent Any-True Shot
This question tests the ability to manage concurrent asynchronous tasks, specifically implementing logic to return the first 'True' result while efficiently cancelling remaining pending tasks.
Coding & AlgorithmsTechnical ScreenConcurrencyAsyncCancellation - TemuEasyData EngineerCompute User Login Streaks
Tests the ability to write a SQL query to identify consecutive daily login streaks from raw event logs, requiring date deduplication, window functions, and streak length aggregation.
Coding & AlgorithmsTechnical ScreenSQLWindow FunctionsTime Series - TemuMediumSoftware EngineerSpiral Order of a Matrix With Blocker Cells That Force Clockwise Turns
Traverse an m x n matrix clockwise from the outside in, then handle a follow-up where some cells are blockers that the walk must turn away from. Tests careful simulation of direction changes, tracking of visited cells, and a precise rule for when the traversal stops.
Coding & AlgorithmsTechnical Screen - TeslaMediumSoftware EngineerCalculate trapped water between elevation bars
This question evaluates array manipulation, algorithmic optimization, and complexity analysis, specifically the ability to reason about time and space trade-offs and design a linear-time, constant-space approach for computing trapped water.
Coding & AlgorithmsTechnical Screen - TeslaHardMachine Learning EngineerCompute suffix sums over waypoints
This question evaluates a candidate's ability to compute geometric suffix sums over batched 2D trajectories, testing skills in array manipulation, Euclidean distance computation, and runtime-conscious algorithm design within the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - TeslaHardSoftware EngineerCoordinate workers across two exclusive targets
This problem tests your ability to manage concurrent resources using synchronization primitives, ensuring workers can safely alternate between two exclusive tasks while maintaining thread safety.
Coding & AlgorithmsTechnical ScreenConcurrencySynchronizationMultithreading - TeslaMediumSoftware EngineerDesign a contiguous segment allocator
This question evaluates a candidate's competency in designing and implementing efficient data structures for interval management, contiguous memory allocation, fragmentation handling, tag-based resource tracking, and algorithmic complexity analysis.
Coding & AlgorithmsTechnical Screen - TeslaMediumSoftware EngineerFind latency pairs with minimal difference
This question evaluates array manipulation, pairwise comparison, and algorithmic efficiency by requiring identification of minimal absolute differences and construction of ordered latency pairs.
Coding & AlgorithmsTechnical Screen - TeslaEasyMachine Learning EngineerImplement 2D convolution forward pass
This question evaluates understanding of 2D convolution mechanics and practical low-level tensor manipulation, including kernel shape handling, padding and stride effects, multi-channel input/output interactions, and optional bias integration.
Coding & AlgorithmsTechnical Screen - TeslaHardSoftware EngineerImplement a Rollback Key-Value Store
This problem tests your ability to design a data structure that supports basic key-value operations with an added transactional rollback mechanism using a stack-based approach.
Coding & AlgorithmsTechnical ScreenData StructuresStackVersioning - TeslaMediumMachine Learning EngineerImplement automatic braking logic in Python
This question evaluates understanding of kinematics, motion modeling, and numerical reasoning for safety-critical control logic, focusing on stopping-distance computation and the impact of reaction time on braking decisions.
Coding & AlgorithmsTechnical Screen - TeslaMediumSoftware EngineerOptimize Trapping Rain Water
This question evaluates algorithmic problem-solving with arrays and analysis of time-space trade-offs in the Coding & Algorithms domain, and is commonly asked to assess a candidate's ability to transform brute-force approaches into efficient linear-time solutions while reasoning about memory usage.
Coding & AlgorithmsTechnical Screen - TeslaMediumData EngineerWrite SQL Data Transformation Queries
This question tests the ability to handle window functions for running totals and conditional aggregation to transform raw manufacturing logs into formatted monthly production reports.
Coding & AlgorithmsTechnical ScreenSQLWindow FunctionsAggregation - The Trade DeskEasyData ScientistImplement monotonic-array linear interpolation
This question evaluates proficiency with piecewise-linear interpolation on strictly increasing (monotonic) arrays, sound handling of out-of-range queries (error, clamp, extrapolate, or None/NaN), and efficient interval search over sorted data with a target of O(log n). It also probes real-world judgment about when each out-of-range policy is appropriate and which non-bisect strategies exist.
Coding & AlgorithmsTechnical Screen - ThumbtackMediumData ScientistEstimate Two Conditional Win Probabilities by Simulation
This question tests practical coding ability in probabilistic simulation, requiring implementation of a Monte Carlo method to estimate conditional win probabilities under two decision strategies. It assesses a data scientist's skill in translating a classic probability scenario into working randomized code rather than relying on closed-form analysis.
Coding & AlgorithmsTechnical Screen - TikTokMediumData ScientistAnalyze DFS, BFS, and A* trade-offs
This question evaluates understanding of graph search algorithms, heuristic properties (admissibility and consistency), path optimality and time/space complexity, requiring application of BFS, uniform-cost search, A*, and DFS on a concrete weighted graph.
Coding & AlgorithmsTechnical Screen - TikTokMediumMachine Learning EngineerCompute city skyline silhouette
Compute city skyline silhouette evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerCompute length of longest increasing subsequence
This question evaluates understanding of subsequences, dynamic programming and algorithmic optimization for array processing, and is categorized under Coding & Algorithms; it emphasizes practical application of algorithm design and complexity analysis rather than purely theoretical knowledge.
Coding & AlgorithmsTechnical Screen - TikTokMediumMachine Learning EngineerCompute minimum path sum in a triangle
This problem tests your ability to optimize path calculations in a non-linear data structure using dynamic programming, specifically focusing on space complexity optimization.
Coding & AlgorithmsTechnical ScreenDynamic ProgrammingArraysSpace Optimization - TikTokMediumSoftware EngineerCompute pipeline order from dependencies
This question evaluates understanding of graph algorithms and dependency resolution, specifically topological sorting and cycle detection, along with competence in choosing appropriate data structures and analyzing time/space complexity.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerCount deletions making array fair
This question evaluates proficiency with array manipulation, parity-aware summation, and combinatorial counting when elements are removed, situating it in the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerCount distinct island shapes in a grid
This problem tests grid traversal (DFS/BFS) and the ability to represent spatial structures in a canonical form to identify unique patterns.
Coding & AlgorithmsTechnical ScreenDFSGraphGrid - TikTokMediumSoftware EngineerCount islands on a torus grid
This question evaluates skills in graph and grid algorithms, topology-aware adjacency (torus wrap-around), and maintaining dynamic connectivity under incremental updates.
Coding & AlgorithmsTechnical Screen - TikTokMediumMachine Learning EngineerCount subarrays summing to target
This problem tests your ability to optimize subarray sum calculations from an O(n^2) approach to O(n) using a hash map for prefix sum tracking.
Coding & AlgorithmsTechnical ScreenArraysHash MapPrefix Sum