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 2731–2760 of 3276 results
- SquarepointMediumData ScientistFewest Increment-All-but-One Moves to Make Array Values Equal
From a Squarepoint technical screen: one move adds 1 to every element of an integer array except one chosen element, and you must find the fewest moves that make all elements equal. It tests reasoning about what each move really changes, along with negative values and answers beyond the 32-bit range.
Coding & AlgorithmsTechnical Screen - SquarepointMediumQuantitative ResearcherFind Values Whose Removal Minimizes Pairing Cost
Determine all unique values from an odd-length array whose removal leaves an even-length array that can be partitioned into pairs with minimum total absolute difference.
Coding & AlgorithmsTechnical Screenarrayssortingprefix-sum - SquarepointMediumRisk Technology Software EngineerFind a Target Sum Using Two Sorted Arrays
Tests two-pointer traversal across two distinct sorted arrays to find a target sum, emphasizing linear time complexity and integer overflow prevention.
Coding & AlgorithmsTechnical Screentwo-pointersarraysbinary-search - SquarepointMediumSoftware EngineerFind the Most Frequent Character with a Tie-Breaker
Tests string traversal, frequency counting, and deterministic tie-breaking under large input constraints.
Coding & AlgorithmsHR ScreenStringsHash TableCounting - SquarepointMediumQuantitative TraderImplement EMA Crossovers and Root Solvers
This problem tests your ability to manipulate time-series data using vectorized operations and implement iterative numerical approximations for square roots.
Coding & AlgorithmsTechnical ScreenPandasTime-SeriesNumerical-Methods - SquarepointMediumData ScientistImplement drawdown, single-trade profit, coin change
This question evaluates a candidate's algorithmic problem-solving skills across array and time-series processing, greedy optimization, and dynamic programming, requiring implementation and complexity analysis of maximum drawdown, single-trade profit, and coin change problems within the Coding & Algorithms domain for a Data Scientist role.
Coding & AlgorithmsTechnical Screen - SquarepointHardData ScientistMaximize profit from one or many stock trades
This question evaluates algorithmic problem-solving skills, particularly efficient array processing and profit-optimization across single-transaction and multiple-transaction variants, along with time and space complexity analysis.
Coding & AlgorithmsTechnical Screen - SquarepointMediumData ScientistMaximize revenue from inventory sales
This question evaluates algorithmic problem-solving and optimization competencies focused on dynamic resource allocation, revenue maximization, and designing efficient solutions that scale with large n, m, and quantities.
Coding & AlgorithmsOnline Assessment - SquarepointMediumSoftware EngineerParse payroll file and answer queries
This question evaluates proficiency in robust file parsing, schema-driven data modeling, type conversion, validation, duplicate handling, and implementing aggregate and ranking queries using Python's standard library for messy, delimited payroll data.
Coding & AlgorithmsOnline Assessment - SquarepointMediumSoftware EngineerReturn Elements Greater Than the Overall Average
This problem tests your ability to perform a two-pass linear scan on an array to compute an aggregate statistic and filter elements, emphasizing space complexity and data integrity.
Coding & AlgorithmsHR ScreenArraysMathTwo-pass - SquarepointMediumQuantitative ResearcherShortest Subarray with at Least K Distinct Values
Determine the minimum length of a contiguous subarray that contains at least k distinct elements. This problem tests sliding-window techniques, hash map management, and linear-time optimization.
Coding & AlgorithmsTechnical Screensliding-windowhash-tabletwo-pointers - SquarepointHardSoftware EngineerSolve two coding assessment tasks
This question set evaluates algorithmic optimization and string-processing skills: the first problem focuses on maximizing cumulative revenue from limited inventories (optimization and greedy reasoning with dynamic value updates), while the second focuses on case-insensitive text parsing, word frequency counting, and frequency-based ordering.
Coding & AlgorithmsOnline Assessment - StackAdaptMediumSoftware EngineerAnalyze time complexity for dictionary operations
This question evaluates understanding of dictionary/hash table performance characteristics, covering hashing, collision-resolution strategies, load factor and resizing impacts, and the cost of iterating or copying keys into a dynamic-array-backed list within the Coding & Algorithms/data structures domain.
Coding & AlgorithmsHR Screen - StackAdaptEasySoftware EngineerDesign a time-windowed key-value store
This question evaluates a candidate's ability to design efficient data structures and algorithms for a time-windowed key-value store, focusing on expiration handling, update semantics, and maintaining aggregate metrics under memory constraints.
Coding & AlgorithmsTechnical Screen - StackAdaptEasyMachine Learning EngineerMaintain the Median of an Integer Stream
This problem tests your ability to maintain dynamic statistics in a data stream using efficient heap-based data structures.
Coding & AlgorithmsTechnical ScreenHeapsData StreamsAlgorithms - StackAdaptMediumMachine Learning EngineerRebuild a Binary Tree From Preorder and Inorder Sequences, Returned in Level Order
Reconstruct a binary tree with distinct values from its preorder and inorder traversals and return it in level-order form with null markers. Tests how the two traversal orders pin down structure, careful index bookkeeping, and efficient handling of deep, skewed trees.
Coding & AlgorithmsOnsite - Startups.ComMediumMachine Learning EngineerImplement common neural network layers in PyTorch
This question evaluates proficiency in implementing core neural-network primitives (ReLU, numerically-stable Softmax, LayerNorm, BatchNorm with running statistics, and RMSNorm), numerical stability and normalization concepts, and understanding of autograd-compatible tensor operations.
Coding & AlgorithmsOnsite - StravaMediumSoftware EngineerFirst Climb in Elevation Samples, Strict and With a Tolerated Partial Descent
Given elevation samples taken at regular intervals, return the start and end indices of the first climb, first under strict rules where elevation may never drop and then allowing a temporary descent limited to a fraction of the gain so far. Tests precise index semantics, lookahead and careful state tracking.
Coding & AlgorithmsTechnical Screen - StripeMediumSoftware EngineerAssign Reviewers from Changed Files
This question evaluates proficiency with version control diffs, repository library APIs, file I/O and CSV parsing, and data aggregation to map changed files to their owners.
Coding & AlgorithmsOnsite - StripeMediumSoftware EngineerAssign tasks to workers with types and accounts
This problem tests the ability to manage task scheduling with specific affinity constraints and varying worker processing times using an efficient priority-based simulation.
Coding & AlgorithmsTechnical ScreenAlgorithmsSchedulingPriority Queue - StripeMediumSoftware EngineerBuild an Account Transfer Ledger
Design and implement an in-memory account ledger that supports deposits, transfers, and platform-backed lending with automatic debt repayment.
Coding & AlgorithmsOnsitedesignhash-tablestate-machine - StripeHardSoftware EngineerCalculate Per-User Usage Charges
This problem tests your ability to efficiently process and aggregate time-series usage data while handling complex proration rules and tiered pricing models.
Coding & AlgorithmsOnline AssessmentArraysSortingMath - StripeMediumSoftware EngineerCalculate transaction fees from CSV records
Implement a fee calculation engine that parses CSV transaction records, applies multi-attribute pricing rules and merchant volume discounts, and accurately rounds fee amounts in cents.
Coding & AlgorithmsTechnical ScreenDesign PatternString ParsingState Tracking - StripeMediumSoftware EngineerCompute account balances with rejection and overdraft
This question evaluates stateful transaction processing and aggregation skills, including per-(account,currency) balance maintenance, timestamp-based ordering, rejection rules, and overdraft coverage via a platform account.
Coding & AlgorithmsOnsite - StripeMediumSoftware EngineerCompute balances with transaction fees and rejections
This problem tests the ability to manage stateful financial records while enforcing conditional logic, fee structures, and balance validation.
Coding & AlgorithmsOnsiteHash MapData ProcessingFinancial Logic - StripeMediumSoftware EngineerCompute currency conversions with graph algorithms
Stripe software-engineer onsite coding question: design data structures and algorithms to compute currency conversions from pairwise exchange rates. It tests modeling currencies as a weighted directed graph, chaining rates with BFS/DFS to answer queries (or -1 when unknown), supporting online updates and many queries efficiently, detecting contradictions and arbitrage in cycles, and computing all rates against a base via topological sort on a DAG, with time and space complexity analysis.
Coding & AlgorithmsOnsite - StripeMediumData EngineerCompute shipping cost with tiered pricing
Evaluates implementation-level algorithmic logic for tiered pricing, covering per-unit aggregation, interval reasoning, and mixed incremental vs fixed pricing models within the Coding & Algorithms domain and Data Engineering role; abstraction level is practical, implementation-focused business logic and data transformation.
Coding & AlgorithmsTechnical Screen - StripeMediumSoftware EngineerConvert bitmap into ASCII characters
This question evaluates skills in binary-to-text data representation, bitmap rendering, and efficient string and array manipulation for output formatting.
Coding & AlgorithmsOnsite - StripeMediumSoftware EngineerDesign a subscription email scheduler with changes and renewals
This question evaluates event-driven scheduling, deterministic time-based ordering, stateful account updates for plan changes and renewals, and algorithmic merging of notification streams in the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - StripeMediumSoftware EngineerEvaluate Ordered Access-Control Rules
Implement an access-control evaluator that parses rule strings with conditions and returns the first matching decision (ACCEPT or BLOCK).
Coding & AlgorithmsTechnical ScreenStringsParsingDesign