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 61–90 of 102 results
- MicrosoftMediumSoftware EngineerReturn the k values in a sorted array closest to a target, with smaller-value ties
Given a sorted integer list, a count k and a target value, return the k elements closest to the target in ascending order. The problem tests a precise tie rule that favors smaller values, duplicate values, targets outside the array's range, and working efficiently on already sorted input.
Coding & AlgorithmsOther - MongoDBMediumSoftware EngineerSuppress repeat log messages printed within 10 seconds of their last printed occurrence
Coding practice question: process a time-ordered stream of log messages and decide which ones are printed when the same text may print at most once every 10 seconds. It tests tracking state across a stream, exact boundary handling at the 10-second mark, and correctly ignoring suppressed events.
Coding & AlgorithmsOther - NVIDIAMediumSoftware EngineerCount Server Pairs Relayed Through Each Node of a Weighted Tree
Given a weighted tree of servers and a signal speed, count for every server how many pairs of other servers it can relay: both path lengths must be multiples of the speed and the two paths must share no cable. Tests tree traversal, path-length reasoning and careful combinatorial counting.
Coding & AlgorithmsOther - NVIDIAMediumSoftware EngineerNormalize an Absolute Unix-Style File Path to Canonical Form
Convert an absolute Unix-style file path into canonical form by collapsing repeated slashes, dropping current-directory markers, applying parent-directory moves that stop at the root, and treating other dot-only names as ordinary directories. Tests careful string parsing and edge-case handling of path components.
Coding & AlgorithmsOther - NVIDIAMediumSoftware EngineerRestaurant Table Reservations: Availability Search and Conflict-Free Booking
System design question asking for a restaurant table reservation service where diners search availability, book, change and cancel, and restaurants manage tables and hours. It tests the data model, preventing double-booking under concurrency, holds and retries, fast availability search and handling booking spikes.
System DesignOther - NetflixMediumData ScientistAnalyze Retention Metrics Using SQL and Python
This question evaluates proficiency in SQL time-based cohort analysis and practical Python algorithm implementation, testing retention metric computation using windowed date calculations and an efficient approach for finding two numbers whose sum is closest to zero.
Data Manipulation (SQL/Python)Other - NetflixHardData ScientistDesign A/B Test for Streaming Feature Network Effects
This interview question evaluates metric design, causal reasoning, experiment setup, diagnostics, SQL/statistical checks, and recommendations in a realistic interview setting. A strong answer for Design A/B Test for Streaming Feature Network Effects states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Analytics & ExperimentationOther - NetflixMediumSoftware EngineerDesign a Streaming Subscription System: Billing, Plan Changes and Payment Retries
Design the subscription backend of a video streaming service such as Netflix, covering the subscription lifecycle, recurring billing through an external payment provider, mid-cycle upgrades and downgrades, retries of failed charges, and scaling. It tests data modeling, safe payment handling, concurrency between member actions and billing jobs, and keeping entitlement checks fast.
System DesignOther - NetflixHardData ScientistEvaluate Propensity Score Matching Alternatives and Diagnostics
This interview question evaluates statistical assumptions, formulas, estimation strategy, uncertainty, edge cases, and interpretation in a realistic interview setting. A strong answer for Evaluate Propensity Score Matching Alternatives and Diagnostics states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Statistics & MathOther - NetflixMediumSoftware EngineerRecommend New Friends from a Mutual-Friendship Graph and Scale the Approach
A problem-solving question about recommending new friends from a mutual friendship graph, worked mostly through discussion with a little code and pseudocode. It tests candidate generation and scoring with deterministic tie-breaks, cost in terms of node degree, handling highly connected users, and precomputing and refreshing suggestions at scale.
Software Engineering FundamentalsOther - NielsenMediumSoftware EngineerBehavioral: Walk Through the Project You Are Most Proud Of
A senior behavioral question that asks which project you are most proud of and why, then probes your personal contribution, the hardest decision you made, and the measurable impact. It tests ownership, technical depth, and the ability to explain trade-offs and lessons clearly to an interviewer.
Behavioral & LeadershipOther - NielsenMediumSoftware EngineerDesign a URL Shortening Service: Code Generation, Storage and Fast Redirects
A system design question on building a URL shortening service that turns long links into short codes and redirects visitors quickly at large scale. It tests requirement scoping, capacity estimates, collision-free code generation across servers, storage and caching choices, and how the redirect path behaves under failure.
System DesignOther - NielsenMediumSoftware EngineerPrefix Tree Supporting Insert, Exact Search and Prefix Queries
A coding problem that processes a sequence of insert, exact-match search and prefix-check operations on lowercase words and returns the boolean answers to the queries in order. It tests building a character-level word index and correctly separating whole-word matches from words that are only prefixes of others.
Coding & AlgorithmsOther - NielsenMediumSoftware EngineerSpring Boot Internals and Java 21 Features Behind a Machine Coding Solution
A machine coding follow-up that drills into a Spring Boot service built during the round: startup, auto-configuration, dependency injection and proxies, then the Java 21 features that could improve it, such as sealed types with pattern matching and virtual threads. It tests framework depth and version-aware modern Java knowledge.
Software Engineering FundamentalsOther - OracleMediumSoftware EngineerBehavioral: simplifying a complicated product or system and proving it worked
A behavioral question asking for a complicated product or system the candidate made simpler. It evaluates how they diagnosed the source of the complexity, decided what to remove or hide, brought users and stakeholders along, and measured whether the simplification actually helped.
Behavioral & LeadershipOther - OracleMediumSoftware EngineerMaximum stock trading profit with at most k buy-and-sell transactions
Given daily stock prices and a transaction limit k, compute the maximum profit achievable with at most k buy-then-sell trades while holding at most one share at a time. It tests generalizing a fixed-count trading problem, handling a k larger than the available profitable trades, and tracking state efficiently.
Coding & AlgorithmsOther - OracleMediumSoftware EngineerMaximum stock trading profit with at most two buy-and-sell transactions
A stock trading optimization problem: given daily prices, find the maximum profit using at most two buy-then-sell transactions while holding at most one share at a time. It tests reasoning about splitting the price history into non-overlapping trades and handling falling, flat or steadily rising prices.
Coding & AlgorithmsOther - OracleMediumSoftware EngineerSimulate an LFU cache that evicts the least-used key, breaking ties by recency
Implement and simulate a least-frequently-used cache with fixed capacity that evicts the key with the lowest use count, breaking ties by least recent use. It tests exact eviction semantics, treating updates and reads as uses, and supporting every get and put in constant average time.
Coding & AlgorithmsOther - OtherMediumSoftware EngineerSpreadsheet Formulas, Dependencies, and Circular References
Implement spreadsheet formulas with dependency updates, repeated references, unset cells, and cycle detection that recovers after formulas change.
Coding & AlgorithmsOther - PalantirMediumSoftware EngineerDesign a Real-Time Collision Warning System for Drones in Shared Airspace
Design a system that ingests live telemetry from many drones sharing airspace and warns operators when two of them are predicted to come too close. It tests streaming ingestion, spatial partitioning, trajectory-based conflict prediction, alert delivery and reliability under the latency and safety demands of a real-time system.
System DesignOther - PalantirMediumSoftware EngineerDesign a Tool Registration, Discovery and Safe Execution Layer for LLM Agents
A senior system design question about the platform that lets LLM-driven agents discover and call backend tools. It probes tool registration and discovery, schema definition versus runtime validation of model-generated arguments, the interface between backend services and agents, and patterns for executing actions safely.
System DesignOther - RapidSOSMediumSoftware EngineerDesign the Product Catalog for a Multi-Store Grocery Delivery Marketplace
A senior system design prompt reported from a RapidSOS loop: design the product catalog for a multi-store grocery delivery marketplace like Instacart. It tests modeling shared products versus per-store prices and availability, ingesting messy retailer feeds, store-scoped browse and search, caching, freshness and checkout consistency.
System DesignOther - RevolutMediumSoftware EngineerBuild a Java restaurant table booking service that prevents double bookings
A live Java coding exercise to build a restaurant table booking system while an AI assistant is allowed. It tests domain modeling, correct interval overlap logic for tables, a clear table allocation policy, thread safety, and how the candidate tests and stays in control of generated code under time pressure.
Software Engineering FundamentalsOther - RevolutMediumSoftware EngineerDesign automatic travel insurance enrollment triggered by customer location
A system design exercise for a banking app that automatically enrolls opted-in customers in travel insurance when location signals show they are abroad. It tests requirements scoping, an event-driven pipeline, idempotent enrollment with an insurer, data modeling, scaling reads and writes, and failure handling.
System DesignOther - SalesforceMediumSoftware EngineerBehavioral deep dive: scaling decisions, zero-to-one platforms, traffic spikes, conflict
Hiring manager behavioral round for a senior backend engineer: a deep dive into a system you own with probing on scaling decisions and failure modes, plus stories about building a platform from zero, handling an unexpected traffic spike, resolving cross-team conflict, and motivation for the move.
Behavioral & LeadershipOther - SalesforceMediumSoftware EngineerBehavioral: Coaching a Teammate and Upholding Team Coding Standards
Two-part behavioral question for senior engineers: how you helped a teammate get better at a specific task, and how you maintain coding standards across your team. It tests mentoring approach, measurable growth, automating standards, code review norms and building team buy-in.
Behavioral & LeadershipOther - SalesforceMediumSoftware EngineerBehavioral: Pivoting Mid-Project and Handing Off Work You Owned
Two-part behavioral question for senior engineers: a time you had to pivot in the middle of a project, and a time you were pulled off a project where you were the main point of contact. It tests adaptability, re-planning, stakeholder communication and responsible handoffs.
Behavioral & LeadershipOther - SalesforceMediumSoftware EngineerCount the Steps at Which Set Bits Form an Exact Prefix of Ones
Array problem: the bits of an all-zero binary string are set one at a time in the order given by a permutation; count the steps after which exactly the first i bits are set. It tests careful reasoning about prefix conditions and handling large inputs efficiently.
Coding & AlgorithmsOther - SalesforceMediumSoftware EngineerDelete Every Value That Repeats in an Unsorted Singly Linked List
Linked list problem: delete every node whose value occurs more than once in an unsorted singly linked list, removing all copies and keeping the remaining nodes in their original order. It tests frequency counting, list traversal and careful handling of removals, including at the head of the list.
Coding & AlgorithmsOther - SalesforceMediumSoftware EngineerDesign a tenant-isolated system to replicate large recordings to per-customer data centers
System design question: build a tenant-isolated pipeline that copies large files such as call recordings from a source data center to each customer's chosen data centers. It tests staged design from a simple copy to asynchronous fan-out, resumable transfers, retries, verification, reconciliation and per-tenant isolation.
System DesignOther