Katkat

practice a little every day, paws crossed ♡

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 3151–3180 of 3640 results

  • SnapchatMediumMachine Learning Engineer
    Find Shortest Clear Grid Path

    Solve the shortest clear path in an n by n binary grid using BFS in 8 directions. Covers blocked endpoints, visited marking, path length, correctness, complexity, and weighted-move follow-ups.

    Coding & AlgorithmsOnsite
  • SnapchatMediumMachine Learning Engineer
    Find all quadruplets summing to target

    This problem tests your ability to optimize nested loops using a two-pointer approach to achieve a time complexity better than brute force when searching for subsets of a fixed size that sum to a target value.

    Coding & AlgorithmsOnsiteArraysTwo PointersSorting
  • SnapchatMediumSoftware Engineer
    Find top co-purchased products

    This question evaluates algorithmic problem-solving and data engineering skills, focusing on computing and ranking co-occurrence frequencies, choosing efficient data structures for pairwise counts, and contrasting offline batch implementation with streaming updates.

    Coding & AlgorithmsOnsite
  • SnapchatMediumData Scientist
    How to Update Bayesian Model for Concept Drift?

    How to Update Bayesian Model for Concept Drift? evaluates statistical assumptions, formulas, estimation strategy, uncertainty, edge cases, and interpretation in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    Statistics & MathOnsite
  • SnapchatHardSoftware Engineer
    Implement LRU cache and prime products array

    This question evaluates proficiency in implementing efficient mutable data structures and in enumerating combinatorial results, specifically testing understanding of LRU cache eviction behavior and generation of all non-empty subset products from a set of primes.

    Coding & AlgorithmsOnsite
  • SnapchatHardSoftware Engineer
    Implement a Leaky Bucket Limiter

    This problem tests your ability to implement a thread-safe rate limiter using the Leaky Bucket algorithm, requiring careful management of timestamps and shared state.

    Coding & AlgorithmsOnsiteConcurrencyRate-LimitingAlgorithms
  • SnapchatHardSoftware Engineer
    Implement a size-bounded LRU cache

    This problem tests your ability to extend the standard LRU cache pattern to support items with heterogeneous 'weights', requiring a data structure that maintains access order while managing a cumulative capacity constraint.

    Coding & AlgorithmsOnsiteLRUHash MapDoubly Linked List
  • SnapchatHardSoftware Engineer
    Implement an iOS scrollable grid with navigation

    This question tests the ability to build a responsive, performance-optimized grid interface in iOS using modern frameworks like SwiftUI, focusing on layout constraints, state management, and navigation flow.

    Software Engineering FundamentalsOnsiteiOSSwiftUILayout
  • SnapchatMediumSoftware Engineer
    Implement binary search for boundary index

    This question evaluates a candidate's ability to implement binary search for boundary indices, including correct handling of duplicates, providing iterative and recursive variants, and reasoning about time and space complexity.

    Coding & AlgorithmsOnsite
  • SnapchatMediumData Scientist
    Influence Cross-Functional Teams Without Formal Authority

    Evaluates behavioral and leadership storytelling for influencing cross-functional teams without formal authority. Strong answers use specific data science examples, quantify impact, show coachability from feedback, and explain prioritization when leadership, data, and UX point in different directions.

    Behavioral & LeadershipOnsite
  • SnapchatMediumSoftware Engineer
    Maximize correct guesses in a hat line puzzle

    This problem tests your ability to devise a deterministic strategy for a group of people to maximize correct guesses about their own attributes based on observed information from others.

    Coding & AlgorithmsOnsiteLogicParityGreedy Strategy
  • SnapchatMediumSoftware Engineer
    Radar Overlaps and Undetected Crossing of a Rectangular Room

    Two-part geometry coding problem about circular radars placed inside a rectangular room. For each radar, list every other radar whose coverage overlaps it, then decide whether a point object can travel from the left wall to the right wall without entering any radar's coverage.

    Coding & AlgorithmsOnsite
  • SnapchatHardMachine Learning Engineer
    Render an Organization Chart and Find Skip-Level Pairs

    Build and render an organization tree with ordered indentation, infer its root, and return exactly two-level manager-descendant pairs.

    Coding & AlgorithmsOnsite
  • SnapchatHardSoftware Engineer
    Solve Three Algorithmic Tasks

    This set of three problems evaluates competencies in algorithm design and data structures, specifically efficient range counting on timestamped events, constrained selection/matching from double-sided cards, and merging multiple sorted lists.

    Coding & AlgorithmsOnsite
  • SnapchatMediumSoftware Engineer
    Solve Three Coding Problems

    This problem tests your ability to efficiently manage dynamic, sliding-window data streams and geometric grid traversal using graph search techniques.

    Coding & AlgorithmsOnsiteHeapsSliding WindowBFS
  • SnapchatMediumSoftware Engineer
    Stream Records into Clusters and Track Each Cluster's Maximum and Median

    Design and implement an in-memory component that assigns each record of a data stream to an existing or a new cluster and returns the maximum value of every cluster. Follow-ups probe read and write optimizations, concurrent ingestion, and how to report each cluster's median.

    Software Engineering FundamentalsOnsite
  • SnowflakeEasySoftware Engineer
    Answer conflict, tight deadline, and mentorship prompts

    This Behavioral & Leadership question evaluates conflict resolution, prioritization and risk-communication under tight deadlines, and mentorship or coaching ability within cross-functional software engineering teams.

    Behavioral & LeadershipOnsite
  • SnowflakeMediumSoftware Engineer
    Behavioral Stories on Ownership, Ambiguity, Deep Dives and Conflict

    A behavioral round for an entry-level software engineer that probes four competencies: taking ownership, making progress under ambiguity, digging deep into a problem, and handling conflict with a colleague. It tests whether candidates give specific, structured stories with a clear personal role and concrete results.

    Behavioral & LeadershipOnsite
  • SnowflakeMediumSoftware Engineer
    Build a Top-Down Reporting Forest from Employee-Manager Pairs

    Given employee-to-manager pairs of integer IDs, build the top-down reporting forest with every top-level manager as a root, and return it as a preorder listing of IDs and depths. Tests finding the roots, building child lists, deterministic sibling ordering, and handling long reporting chains.

    Coding & AlgorithmsOnsite
  • SnowflakeMediumData Scientist
    Build a cohort dashboard with Streamlit and SQL

    This question evaluates proficiency in cohort analysis using SQL window functions, time-based aggregation, ARPU calculation, and integration of data querying with a Streamlit visualization front end, including handling timezones and data-quality checks.

    Data Manipulation (SQL/Python)Onsite
  • SnowflakeMediumSoftware Engineer
    Compute shortest path between tree nodes

    Given a binary tree and two node values u and v, return the shortest path between them as an ordered list of node values. This Snowflake onsite question tests lowest-common-ancestor logic, path reconstruction, iterative vs. recursive implementation, complexity analysis, and preprocessing strategies (parent pointers, binary lifting, Euler tour + RMQ) for answering many queries efficiently.

    Coding & AlgorithmsOnsite
  • SnowflakeMediumSoftware Engineer
    Compute task order and layered execution

    This question evaluates a candidate's understanding of graph algorithms and dependency resolution, covering concepts such as topological ordering and cycle detection.

    Coding & AlgorithmsOnsite
  • SnowflakeMediumMachine Learning Engineer
    Core Components of LLM Agent Memory: What Each Stores and How It Is Written and Read

    Explain the common components of an LLM agent's memory, from the context window to session, episodic, semantic and procedural memory, and how each is written, retrieved and maintained. It tests agent architecture knowledge, context budgeting, conflict handling, forgetting and memory security.

    Machine LearningOnsite
  • SnowflakeMediumSoftware Engineer
    Design a Photo Album Backend: Upload Consistency, Deduplication and Scaling

    A backend system design prompt for a photo album service where users upload photos and organize them into albums. It probes keeping a metadata database and blob storage consistent on upload, showing new photos instantly despite processing lag, blocking duplicate uploads, and when a relational database stops scaling.

    System DesignOnsite
  • SnowflakeMediumMachine Learning Engineer
    Design a Pipeline That Distills Reusable Agent Skills for Enterprise Customers

    Design a pipeline that automatically extracts reusable agent skills for enterprise customers from traces and documents, validates them and delivers them to agents. It tests LLM system design, outcome labeling, offline evaluation against a baseline, tenant isolation, versioning and drift monitoring.

    ML System DesignOnsite
  • SnowflakeHardSoftware Engineer
    Design a Priority Task Executor with Duplicate Task IDs

    This problem tests your ability to design a thread-safe task scheduler that handles duplicate task IDs while ensuring each unique task is executed exactly once based on priority and submission time.

    Software Engineering FundamentalsOnsiteConcurrencyHeapsHash Maps
  • SnowflakeHardSoftware Engineer
    Design a Reliable Job Scheduler

    This problem tests the ability to design a distributed, fault-tolerant job scheduler capable of handling task persistence, concurrency, and strict timing requirements at scale.

    System DesignOnsiteDistributed SystemsConcurrencyFault Tolerance
  • SnowflakeHardSoftware Engineer
    Design a concurrent web crawler

    This problem evaluates your ability to design a distributed, concurrent web crawling architecture that balances high throughput with politeness policies, concurrency control, and robust state management.

    System DesignOnsiteConcurrencyDistributed SystemsCaching
  • SnowflakeEasySoftware Engineer
    Design a disk-backed KV store under contention

    This problem tests the ability to design a persistent key-value store that balances disk I/O, memory caching, and thread safety under high concurrency.

    System DesignOnsiteConcurrencyStorage EnginesLSM Trees
  • SnowflakeMediumData Scientist
    Design an analytic warehouse for event data

    This question evaluates a candidate's competency in data warehousing and engineering for analytics, including event-level schema and partitioning, slowly changing dimensions, idempotent ingestion and deduplication, derived metrics modeling, and query performance and cost trade-offs using SQL/Python.

    Data Manipulation (SQL/Python)Onsite