Katkat

practice a little every day, paws crossed ♡

Data Scientist 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 1–30 of 31 results

  • Akuna CapitalHardData Scientist
    Find minimum swaps to sort array with duplicates

    This question evaluates array manipulation and permutation-based reasoning for minimizing swap operations, including handling of duplicate values and performance considerations, within the Coding & Algorithms domain for a Data Scientist role.

    Coding & AlgorithmsOnline Assessment
  • AmazonHardData Scientist
    Solve subset-count and kth-factor problems

    This question evaluates algorithm design and analysis skills, including selection under sum constraints with negatives and zeros, streaming and query-preprocessing strategies for repeated budgets, and number-theoretic factor enumeration for large N, all within the Coding & Algorithms domain.

    Coding & AlgorithmsOnline Assessment
  • AtlassianMediumData Scientist
    Implement sliding-window rate limiter with dual thresholds

    This question evaluates a candidate's skill in implementing efficient online sliding-window rate limiting, covering stream processing, time-based window management, per-key state maintenance, algorithmic complexity analysis, and formal correctness reasoning.

    Coding & AlgorithmsOnline Assessment
  • Bank of AmericaMediumData Scientist
    Compute maximum beauty of a string

    This question evaluates skills in string manipulation, frequency analysis, and optimization of weighted sums, focusing on assigning distinct values to characters to maximize an aggregate metric.

    Coding & AlgorithmsOnline Assessment
  • Bank of AmericaMediumData Scientist
    Convert number words to integer

    This question evaluates textual number parsing, tokenization, and numeric mapping skills, testing string manipulation and lexical interpretation within the Coding & Algorithms domain for a Data Scientist role and emphasizing practical application rather than pure theoretical concepts.

    Coding & AlgorithmsOnline Assessment
  • Bank of AmericaMediumData Scientist
    Explain coding solution and alternatives

    Explain coding solution and alternatives 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 & AlgorithmsOnline Assessment
  • ByteDanceEasyData Scientist
    Implement several OA simulation problems

    This set of problems evaluates skills in string processing, memory simulation and allocation logic, and online data-structure maintenance for dynamic contiguous segment counting, testing algorithmic design and attention to stateful invariants.

    Coding & AlgorithmsOnline Assessment
  • CoinbaseMediumData Scientist
    Solve Aptitude Test: Logical, Numerical, Verbal Reasoning

    This question evaluates logical, numerical, and verbal reasoning along with rapid pattern recognition and time-limited decision-making relevant to pre-employment aptitude screens for data science roles.

    Coding & AlgorithmsOnline Assessment
  • Goldman SachsEasyData Scientist
    Count Palindromic Substrings

    This question tests your ability to identify palindromes within a string using expansion around centers or dynamic programming.

    Coding & AlgorithmsOnline AssessmentStringsTwo PointersDynamic Programming
  • GoogleEasyData Scientist
    Build next-word predictor with O(1) lookup

    This problem tests your ability to design a memory-efficient data structure for storing n-gram probabilities and performing fast lookups for the most likely next word.

    Coding & AlgorithmsOnline AssessmentHash MapData StructuresNLP
  • Hudson River TradingMediumData Scientist
    Count Smaller Numbers with Only Zero and One in Base Four

    Count the number of positive integers strictly less than n whose base-4 representation consists only of the digits 0 and 1.

    Coding & AlgorithmsOnline AssessmentMathBit ManipulationDigit DP
  • OpenAIMediumData Scientist
    Identify Bugs in Python Script for User Assignment

    This question evaluates a candidate's ability to detect bugs and data-quality risks in a Python script, testing competencies in code review, reproducible randomization, idempotency, logging, duplicate-exposure safeguards, and safe experiment-assignment logic.

    Coding & AlgorithmsOnline Assessment
  • OptiverHardData Scientist
    Find missing numbers in sequences

    This problem tests pattern recognition and algorithm design for identifying missing terms in a sequence that may follow arithmetic, geometric, polynomial, or linear recurrence rules.

    Coding & AlgorithmsOnline AssessmentAlgorithmsPattern RecognitionNumerical Analysis
  • OptiverMediumData Scientist
    Match alphanumeric patterns in a stream

    This question evaluates skills in exact and approximate alphanumeric string matching, streaming pattern lookup, noise-tolerant comparison, and performance-oriented data structures and encodings.

    Coding & AlgorithmsOnline Assessment
  • OptiverMediumData Scientist
    Minimize moves to transform floor layouts

    This question evaluates algorithm design and combinatorial optimization skills, focusing on reasoning about minimal moves, greedy heuristics, and proving optimality within the Coding & Algorithms domain for data-science technical roles.

    Coding & AlgorithmsOnline Assessment
  • OthersEasyData Scientist
    Answer ancestor-walk queries on a rooted tree

    This question evaluates understanding of tree data structures and ancestor-walk queries, assessing competency in traversing rooted trees, interpreting parent arrays, and designing efficient query-processing methods for large n and q.

    Coding & AlgorithmsOnline Assessment
  • Point72EasyData Scientist
    Find kth missing integer and redundant operations

    This paired question evaluates array and algorithmic skills — specifically order-statistics and missing-number reasoning for the k-th missing positive, and time-window aggregation with frequency tracking for detecting redundant log events — within the coding & algorithms domain.

    Coding & AlgorithmsOnline Assessment
  • Point72HardData Scientist
    Implement composition and mixin utilities

    This problem tests proficiency in functional composition, Python metaclass/decorator patterns, and custom serialization logic, focusing on handling flexible arguments and object introspection.

    Coding & AlgorithmsOnline AssessmentPythonFunctional ProgrammingSerialization
  • RobloxEasyData Scientist
    Implement four DS coding tasks

    This multi-part question evaluates a data scientist's competencies in statistical inference (sample size and z-test calculations), causal inference and parallel-trends validation (difference-in-differences), Bayesian probability updating, and interpretable supervised learning feature importance, all framed as coding tasks.

    Coding & AlgorithmsOnline Assessment
  • RobloxMediumData Scientist
    Optimize assembly-line scheduling with changeovers

    This question evaluates combinatorial optimization and scheduling competencies, specifically reasoning about NP-hardness, sequence-dependent setup times, precedence and downtime constraints, and designing exact and heuristic solvers for makespan minimization.

    Coding & AlgorithmsOnline Assessment
  • SchonfeldMediumData Scientist
    Compute probability last passenger gets own seat

    This question evaluates a candidate's understanding of probability theory, combinatorics, and reasoning about sequential random processes, with emphasis on symmetry and conditional dependence.

    Coding & AlgorithmsOnline Assessment
  • SchonfeldMediumData Scientist
    Find smallest N for 5-and-21 sums

    This question evaluates understanding of integer linear combinations and elementary number theory, framed as a Frobenius coin problem that examines representability using non-negative multiples of 5 and 21.

    Coding & AlgorithmsOnline Assessment
  • SquarepointMediumData Scientist
    Maximize 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
  • TikTokMediumData Scientist
    Maximize Distinct Purchases Within Budget Constraints

    This question evaluates understanding of selection and optimization under budget constraints, algorithmic efficiency, and the ability to implement correct logic for maximizing the number of distinct items purchased.

    Coding & AlgorithmsOnline Assessment
  • TikTokMediumData Scientist
    Maximize products bought under budget

    This question evaluates algorithmic problem-solving skills including sorting, prefix-sum accumulation, binary search, greedy selection, careful tie-breaking for lexicographic order, and complexity analysis.

    Coding & AlgorithmsOnline Assessment
  • Two SigmaMediumData Scientist
    Compute Piecewise Linear Interpolation

    This question evaluates skills in algorithm design and numerical interpolation, including sorting and searching among 2D points, handling boundary cases for extrapolation, and computing linear interpolation accurately and efficiently.

    Coding & AlgorithmsOnline Assessment
  • Two SigmaMediumData Scientist
    Evaluate Piecewise Linear Function

    This question tests the ability to efficiently search through sorted interval data and apply linear interpolation to compute the value of a continuous piecewise function at a specific input point.

    Coding & AlgorithmsOnline AssessmentBinary SearchInterpolationData Structures
  • Two SigmaMediumData Scientist
    Evaluate a Piecewise Linear Function

    This question tests the ability to efficiently search through a sorted collection of coordinates and apply linear interpolation to compute values for a continuous piecewise function.

    Coding & AlgorithmsOnline AssessmentBinary SearchInterpolationGeometry
  • Two SigmaMediumData Scientist
    Evaluate piecewise linear function at x

    This question evaluates competency in numerical interpolation and handling of piecewise linear functions, including locating the correct segment in a sorted sequence of points and managing out-of-range inputs.

    Coding & AlgorithmsOnline Assessment
  • Two SigmaEasyData Scientist
    Fill Missing Time-Series Values with Linear Interpolation (Duplicate Timestamps Allowed)

    This question evaluates a candidate's ability to perform time-series data cleaning and aggregation of duplicate timestamps, plus numerical linear interpolation and boundary value propagation, within the Coding & Algorithms domain.

    Coding & AlgorithmsOnline Assessment