practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6036 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.
- 6036
- Problems
- 2235
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1141–1170 of 6036 results
- System DesignHardModel answerMultithreaded Shortest-Path Search for a Wheel Combination Lock
Design a thread-parallel breadth-first search that finds the fewest moves to open a multi-wheel combination lock, covering work splitting, safe visited tracking, level ordering and trade-offs.
System Designbfsconcurrencyparallel-algorithmsgraph-search - System DesignMediumModel answerSpring Core, Aspect-Oriented Programming, Data Access, and Security Assessment
Evaluate key Spring concepts including ApplicationContext configuration, AOP advice selection, dependency injection, JdbcTemplate mapping, DataSource configuration, and Security authorization rules.
System Designjavaspringspring-bootspring-security - BehavioralMediumModel answerProactive Course Correction in Projects and Professional Trajectory
Demonstrate strategic agency, rigorous trade-off evaluation, and effective stakeholder management when changing course on a major initiative or career direction.
Behavioralleadershipagencydecision-makingcommunication - System DesignHardModel answerScalable Backend for a High-Traffic Book Retail Platform
Design the backend of a book-selling website that survives flash sales, with fast search, no overselling of stock, and safe recovery when payment and inventory steps fail partway.
System Designsystem-designe-commerceinventorysaga - Arrays & HashingMediumAuto-gradedStreak Follow-Up Chance and Two-Bot Proportion Comparison
Return the next-success probability under independence, plus a pooled two-proportion z statistic and two-sided p-value comparing two success rates.
Arrays & Hashinghypothesis-testingtwo-proportion-z-testconditional-probabilitynormal-distribution - Arrays & HashingMediumAuto-gradedGreedy First-Fit Placement of Shapes on a Grid
Simulate placing fixed binary shapes onto a grid at the first row-major position where their filled cells hit only empty cells, labelling each by its index.
Arrays & Hashingsimulationmatrixgridbrute-force - BehavioralMediumModel answerFrom Customer Pain to a Scoped First Release: A PM Playbook
Describe how a product manager confirms a team is tackling a real customer problem, scopes the smallest useful first release, aligns stakeholders, launches, and judges the result.
Behavioralproduct-managementmvpproblem-validationprioritization - System DesignHardModel answerMoving 200 TB of Media to GPUs Under a 72-Hour Deadline
Design a plan to relocate 200 TB of images and video from a bandwidth-limited data center to a cloud GPU cluster, then feed training fast, reproducibly, and with verified integrity.
System Designdata-pipelinedata-migrationdistributed-trainingstorage - Math & Bit ManipulationEasyAuto-gradedChance of a 15-Sum Triple from the Leftover Deck
Compute the probability that three cards drawn without replacement from the cards the opponent left behind sum to exactly 15, using combinatorial counting.
Math & Bit Manipulationcombinatoricsprobabilityenumerationitertools - System DesignHardModel answerSkill-Based 1v1 Pairing Backend for a Board Game Platform
Design a scalable, fault-tolerant service that pairs two players of similar rating, loosens its criteria as waiting grows, supports cancellation, and discourages opponent dodging.
System Designmatchmakingdistributed-systemsredispartitioning - Data Structure DesignMediumModel answerStar Feedback Widget with Compose and a ViewModel
Build a Compose feedback form with a 1-5 star selector, a capped comment field and an async submit, driven by a single ViewModel state stream that survives rotation and double taps.
Data Structure Designkotlinjetpack-composeandroidmvvm - SQL & DataEasyAuto-gradedLoan Count Gap Between Newest Member and Their Sponsor
Tests table-style aggregation in Python: select the row with the highest key, count occurrences per key, and handle null or missing sponsor references with a default of zero.
SQL & Dataaggregationhash-mapnull-handlingjoins - SQL & DataMediumModel answerRolling Cold-Food Delivery Metric Calculation in PostgreSQL
Write PostgreSQL queries to flag cold food deliveries, calculate daily and rolling 7-day cold delivery rates, rank restaurants, and detect courier quality outliers with z-scores.
SQL & Datasqlwindow-functionsaggregationscte - StringsEasyAuto-gradedFind the First Near-Match Code With Optional Folding Rules
Scan candidate codes in order and return the first whose normalized form is within a mismatch limit of a reference, using optional case folding and O/0, I/1 merging.
Stringsstringshamming-distancenormalizationsimulation - System DesignMediumModel answerBackend Design for a Offline-Capable, Cross-Device Scheduling App
Design the backend for a scheduling app where one user's devices stay in sync, edits work offline, and repeating events are stored and queried efficiently at 10M daily users.
System Designsystem-designsyncconflict-resolutionrecurrence - Machine LearningEasyModel answerFive ML Concepts: Gradients, Penalties, Dropout, Similarity, Encoding
Answer five conceptual ML questions covering loss gradients, L1 vs L2 penalties, activations and dropout, cosine vs Euclidean similarity, and encoding high-cardinality categorical features.
Machine Learningloss-functionsregularizationdropoutcosine-similarity - Dynamic ProgrammingMediumAuto-gradedStop or Roll: Ten-Sided Die With a One-Time Reset
Decide whether to stop or roll in a dice accumulation game where the first zero resets your total and the second zero wipes you out, using DP over (total, reset-used) states.
Dynamic Programmingdynamic-programmingexpected-valueoptimal-stoppingprobability - Data Structure DesignMediumModel answerReversible Edit History for a Formula-Driven Grid
Design a command-based history for a spreadsheet that undoes and redoes cell edits, row deletions and batches, recomputes dependent formulas, handles irreversible actions, and bounds memory.
Data Structure Designcommand-patternundo-redomementodependency-graph - StringsMediumAuto-gradedLeftmost Longest Mirror-Reading Substring
Find the longest contiguous substring that reads the same in both directions, returning the leftmost one on ties; tests center expansion or Manacher-style reasoning.
Stringsstringspalindrometwo-pointersmanacher - System DesignMediumModel answerSecure Shared Analytics Service for Many Enterprise Customers
Design a shared analytics service where enterprise customers run SQL on their own datasets with strict isolation, attribute-based access rules, tamper-evident auditing and erasure support.
System Designmulti-tenancyabacaudit-loggingdata-lineage - Trees & GraphsMediumAuto-gradedGenerate Preorder Depth Forest from Directed Node Pairs
Construct a hierarchical forest from directed child-parent relations and output a depth-annotated preorder traversal.
Trees & Graphstrees-graphsdepth-first-searchstackrecursion - Machine LearningMediumModel answerGroup-Based Policy Optimization for LLM Fine-Tuning vs PPO
Describe how group-relative policy optimization trains a language model from scored samples without a critic, how it compares with PPO-based RLHF, and where it breaks.
Machine Learningreinforcement-learningllmgrpoppo - SQL & DataMediumModel answerPower Sellers and Vehicle Share of New US Listing Engagement
Two SQL tasks on a marketplace: count sellers with many well-engaged products in a short window, and compute the Vehicle share of interactions on newly created US listings.
SQL & Datasqljoinsaggregationsnapshot-tables - BehavioralMediumModel answerBridging Into a Spreadsheet-Driven Pricing Analyst Role
Explain how you would show you can succeed as a pricing analyst without direct pricing experience, working mostly in shared spreadsheets, including governance and when to move off them.
Behavioralbehavioralpricing-analyticsgoogle-sheetsgovernance - Machine LearningMediumModel answerDesigning a Ranking and Exploration Pipeline for Fresh Ad Campaigns
Design an ML system that ranks and safely explores ads under one week old with little click or conversion history, while keeping auction pricing, user experience and advertiser pacing intact.
Machine Learningcold-startads-rankingthompson-samplingcalibration - System DesignMediumModel answerArchitecting a Payment Gateway with Real-Time Authorization and Batch Settlement
Design a robust payment architecture that handles real-time authorization holds, deferred batch captures, and safe retries without double-charging users.
System Designsystem-designpayment-processingidempotencyeventual-consistency - StringsMediumAuto-gradedShared-Letter Splits and Best Uniform Bundles
Count string split points whose halves share more than k distinct characters, and find the most equal-total bundles of one or two items from a cost list, with a special rule for zero-cost items.
Stringsstringshash-mapcountingprefix-suffix - Trees & GraphsMediumAuto-gradedBest Meeting Cell on a Grid with Walls
Find the open cell with the smallest total shortest-path distance to a set of target cells on a grid with obstacles, using BFS and reachability counting.
Trees & Graphsbfsgridshortest-pathgraph-traversal - Trees & GraphsMediumAuto-gradedTree Depth After Splicing Out Removed Nodes
Compute the depth of a rooted tree given as a parent array after splicing out marked nodes, so their children attach to the nearest surviving ancestor.
Trees & Graphstreebfsparent-arraydepth - Machine LearningHardModel answerDesigning a Feed Ad Recommendation and Ranking Engine
Architect an end-to-end Machine Learning ad recommendation system for a content feed, balancing ad revenue with user experience, delayed feedback, counterfactual evaluation, and budget pacing.
Machine Learningrecommender-systemsrankingctr-predictionmulti-task-learning