LinkedIn interview practice

LinkedIn interview questions

91 questions; coding questions sorted by reports.

FastPrep has 67 coding questions tagged LinkedIn, plus 21 system design and 3 project coding questions. Filter them by interview stage and open any one to practice it.

Questions
91 (67 coding, 24 design and project)
By stage
Online Assessment 8 · Phone Screen 32 · Onsite 30
Updated

Question list

All 67 LinkedIn coding questions

Sorted by how many times each question was reported. Pick a stage to see only its questions.

Showing 67 of 67 LinkedIn questions.

QuestionDifficultyStageReports
Max Points on a LineArrayHash TableHardOnsite4 reports · last Nov 2026
Explore an Unknown Grid and Find a PathMatrixGraphMediumOnsite4 reports · last Nov 2026
Known Words Matching Phone DigitsStringHash TableEasyPhone4 reports · last Oct 2026
Merge N-Ary Trees by KeyTreeHash TableMediumPhone · Onsite4 reports · last Sep 2026
Inverse-Depth Nested List SumStringStackMediumPhone3 reports · last Oct 2026
Repeated Shortest Word Distance QueriesArrayHash TableMediumPhone3 reports · last Oct 2026
Binary Tree Zigzag Level Order TraversalTreeBreadth-First SearchMediumPhone · Onsite3 reports · last Sep 2026
LRU Cache with Hit and Miss CountersDesignHash TableMediumOnsite3 reports · last Sep 2026
Maximum Depth of Binary TreeTreeDepth-First SearchEasyPhone · Onsite3 reports · last Sep 2026
Second Minimum in a Tournament TreeTreeDepth-First SearchMediumPhone3 reports · last Sep 2026
Find Leaves of a Binary TreeTreeDepth-First SearchMediumOnsite2 reports · last Nov 2026
Maximum Product of a Contiguous SubarrayArrayDynamic ProgrammingMediumPhone2 reports · last Nov 2026
Maximum Sum of a Contiguous SubarrayArrayDynamic ProgrammingMediumPhone2 reports · last Nov 2026
Sum an Arbitrary-Dimensional ArrayArrayEasyPhone2 reports · last Oct 2026
Lexicographically Smallest Course OrderGraphTopological SortMediumOnsite2 reports · last Oct 2026
Maximum Consecutive Ones in a Circular ArrayArraySliding WindowMediumOnsite2 reports · last Oct 2026
Logistic Regression DiagnosticsMatrixMathMediumPhone2 reports · last Oct 2026
Restricted Decimal Number ValidatorStringParsingEasyPhone2 reports · last Sep 2026
Flowerbed Capacity QueriesArrayGreedyMediumPhone2 reports · last Sep 2026
Allocate Mailboxes with Squared DistanceDynamic ProgrammingPrefix SumHardOnsite1 report · last Nov 2026
Merge Two Sorted ListsLinked ListTwo PointersEasyPhone1 report · last Nov 2026
Sqrt(x)MathBinary SearchEasyPhone1 report · last Nov 2026
Total Years of Work ExperienceArraySortingEasyPhone1 report · last Nov 2026
Fire Station Response BillBreadth-First SearchMatrixMediumOnsite1 report · last Nov 2026
Roll a Weighted DieArrayPrefix SumEasyOnsite1 report · last Oct 2026
Kth Closest Element in a BSTTreeBinary SearchMediumOnsite1 report · last Oct 2026
Longest Binary Subarray With at Most K OnesArraySliding WindowMediumOnsite1 report · last Oct 2026
Longest Binary Window with at Most K OnesArraySliding WindowMediumOnsite1 report · last Oct 2026
LRU Cache OperationsHash TableLinked ListMediumOnsite1 report · last Oct 2026
Valid Number with ExponentsStringParsingMediumPhone1 report · last Oct 2026
Sort a Quadratic-Transformed ArrayArrayTwo PointersMediumPhone1 report · last Oct 2026
K Closest Values in a Binary Search TreeTreeBinary SearchMediumOnsite1 report · last Oct 2026
Unique Single-Use Sum CombinationsArrayBacktrackingMediumOnsite1 report · last Oct 2026
Constant-Time Minimum StackStackArrayEasyPhone1 report · last Oct 2026
Randomized String MultisetHash TableArrayHardPhone1 report · last Oct 2026
Move the Nth Linked-List Node to the FrontLinked ListEasyPhone1 report · last Oct 2026
Rank-Based Cache with a Data SourceDesignHash TableMediumPhone1 report · last Oct 2026
Response Time Across a City GridMatrixBreadth-First SearchMediumOnsite1 report · last Oct 2026
Kth Largest Element in an ArrayArraySortingMediumPhone1 report · last Oct 2026
Letter Combinations of a Phone NumberStringBacktrackingMediumPhone1 report · last Oct 2026
Find the Intersection Node of Two Linked ListsLinked ListTwo PointersEasyPhone1 report · last Sep 2026
Permutations IIStringSortingMediumPhone1 report · last Sep 2026
Minimum Window SubstringHash TableSliding WindowHardOnsite1 report · last Sep 2026
Users with a Short Sign-In SessionHash TableSortingMediumOnsite1 report · last Sep 2026
Max StackStackLinked ListHardOnsite1 report · last Sep 2026
Uniform 0-6 from an Unknown Biased BitBit ManipulationMediumPhone1 report · last Sep 2026
Thread-Safe LRU Cache with TTLDesignHash TableHardOnsite1 report · last Sep 2026
Schedule Tasks with an Interval TreeTreeIntervalsMediumOnsite1 report · last Sep 2026
Train a Binary Recommender MLPMathSimulationHardPhone1 report · last Sep 2026
Largest NumberArraySortingMediumPhone1 report · last Sep 2026
N-Ary Tree Codec OperationsStringTreeHardOnsite1 report · last Aug 2026
Distance to the Nearest Supply PointGraphBreadth-First SearchMediumOnsite1 report · last Aug 2026
Reconstruct a Graph into a TreeGraphUnion FindMediumOnsite1 report · last Aug 2026
Count Distinct Values in a Huge Sorted ArrayArrayBinary SearchMediumOnsite1 report · last Aug 2026
Find K Closest Elements in a Sorted ArrayArrayBinary SearchMediumOnsite1 report · last Aug 2026
Power with Integer ExponentsMathRecursionMediumOnsite1 report · last Aug 2026
Count Completed TripsHash TableSimulationEasyPhone1 report · last Apr 2026
Find the PathGraphBinary SearchHardOA1 report · last Mar 2025
Split Array Largest SumDynamic ProgrammingBinary SearchMediumOA1 report · last Mar 2025
Longest String ChainDynamic ProgrammingHash TableMediumOA1 report · last Feb 2025
Find Number of Perfect PairsArrayMathMediumOA1 report · last Feb 2025
Optimize Context SwitchingGreedyArrayHardOA1 report · last Oct 2024
Efficient TrekDynamic ProgrammingArrayHardOA1 report · last Oct 2024
Get Process TimeDynamic ProgrammingGreedyHardOA1 report · last Oct 2024
Factor CombinationsBacktrackingDepth-First SearchMediumPhone1 report · last Oct 2024
Intersection of Two ListsArrayHash TableEasyPhone1 report · last Oct 2024
Find the SubstringStringTwo PointersEasyOA1 report · last Sep 2024

At a glance

LinkedIn interview process

FastPrep has 67 LinkedIn coding interview questions: 8 questions from the online assessment (OA), 32 questions from phone screens and 30 questions from onsite rounds. A question can be reported in more than one stage. Most are medium (41 medium, 14 easy and 12 hard). The most common topics are Array, Hash Table, String, Sorting and Math. The latest report is from Nov 2026.

  • Online Assessment

    8 questions · 4 hard, 3 medium and 1 easy

    Topics: Array, Dynamic Programming and Binary Search

    Latest report: Mar 2025

  • Phone Screen

    32 questions · 18 medium, 12 easy and 2 hard

    Topics: Array, Hash Table and Sorting

    Latest report: Nov 2026

  • Onsite

    30 questions · 22 medium, 6 hard and 2 easy

    Topics: Array, Tree and Hash Table

    Latest report: Nov 2026

By stage and level

LinkedIn questions by stage and level

01 · Preparation plan

Optimize repeated work, then preserve structured state.

LinkedIn's mixed catalog supports a progression from repeated queries to structured-data operations and service design. The key preparation question is what to precompute and what to maintain after updates. LinkedIn spelling variants share this one page so the same company does not acquire competing practice owners. This is a suggested practice order, not LinkedIn's interview process. Your invitation and recruiter come first.

  1. 01

    Index positions for repeated queries

    Preprocess the document once for a batch of queries between two distinct words known to occur in it. Compare rescanning with retaining each word's ordered positions, keeping preprocessing cost separate from query cost.

    • Use the guaranteed distinct-word contract rather than inventing a same-word rule.
    • Compare two sorted position lists without checking every pair.
    • Return distances in query order and explain the preprocessing-versus-query tradeoff.
    Practice: Repeated Shortest Word Distance Queries
  2. 02

    Merge trees by identity, not position

    The N-ary tree merge exercise asks you to decide what makes two nodes the same. Matching children by their order can silently produce incorrect results.

    • Define key collision behavior.
    • Test children appearing in only one tree.
    • Preserve the output ordering required by the prompt.
    Practice: Merge N-Ary Trees by Key
  3. 03

    Preserve the specified N-ary tree wire format

    This codec has an existing protocol: preorder value:childCount tokens separated by a pipe, with canonical parenthesized tree text on decoding. Follow that grammar rather than designing a new escaping or length-prefix scheme.

    • Track each node's remaining children while preserving sibling order.
    • Test a leaf, multiple children, and deep nesting within the valid nonempty-tree contract.
    • Check round-trip structure and return one result per operation in its original order.
    Practice: N-Ary Tree Codec Operations

02 · Design and project questions

24 LinkedIn design and project questions

Beyond coding questions, FastPrep has 21 system design and 3 project coding questions tagged LinkedIn.

System designLast reported Dec 2026

Design a Scheduled Job Execution System

Design a durable one-time and recurring job service with priority classes, stable occurrence identity, at-least-once execution safety, and private object-storage logs for every run.

Practice
System designLast reported Nov 2026

Design a Personalized Recommendation System

Design event ingestion, candidate retrieval, ranking, and serving for a bounded personalized user-item catalog.

Practice
System designLast reported Nov 2026

Design a Global Service Metrics Monitoring and Alerting Platform

Design a global platform that turns microservice metrics into honest health dashboards and timely, deduplicated anomaly alerts.

Practice
System designLast reported Nov 2026

Design a Calendar Event Collaboration System

Design event scheduling, attendee responses, permission-checked views of other people's calendars, and asynchronous notifications to attendees and organizers.

Practice
System designLast reported Nov 2026

Design Short- and Long-Term Member Churn Prediction

Predict, for every recently active member, the chance of no activity in the next 2 days and in the next 28 days, keep the scores fresh, serve them to re-engagement systems, and evaluate and launch models safely.

Practice
System designLast reported Nov 2026

CI/CD Pipeline Orchestration System

Design a multi-tenant CI/CD control plane that safely orchestrates dependency-aware pipeline runs across regional data-plane worker fleets and stays fair and predictable when ready work outruns worker supply.

Practice
System designLast reported Nov 2026

Design Required-Approver Resolution for Pull Requests

Work out, for every pull request, which owners must approve it before it can merge, keep that answer fast across repositories of very different sizes and a high commit rate, and never let a merge through without the approvals it needs.

Practice
System designLast reported Nov 2026

Design a Product Analytics System

Design a billion-event-per-day analytics pipeline with fast minute-count dashboards, accurate late-event warehouse totals, and a measurable recovery and scaling plan.

Practice
Project codingLast reported Nov 2026

Suggestions Feed with Close Icons

Build a vanilla JavaScript suggestions feed from a dummy list and make each card's close icon work.

Practice
System designLast reported Oct 2026

Design Learned Web Search Ranking

Learn query-to-link relevance from historical clicks while separating weak feedback, candidate coverage and safe online ranking.

Practice
System designLast reported Oct 2026

Design a Highly Available Distributed Key-Value Store

Design a partitioned, replicated key-value service and compare request-routing choices, consistency, online growth and hot-key behavior.

Practice
System designLast reported Oct 2026

Design Sliding-Window Exception Rankings

Track service exceptions and return exact most-frequent and least-frequent keys for recent time windows.

Practice
Project codingLast reported Oct 2026

Implement Priority and Time-Window Log Processing

Extend a small supplied log-processing repository with ordered priority classification, time-window retrieval and tests.

Practice
System designLast reported Oct 2026

Design a Backend Search Engine

Design a multi-tenant backend that ingests versioned documents and serves low-latency text search with filters, stable pagination, and safe index rebuilds.

Practice
Project codingLast reported Oct 2026

Simulate Roller-Coaster Group Seating

Implement a group-seating simulation that reports trips, elapsed time and seat utilization.

Practice
System designLast reported Oct 2026

Design a Personalized Recruiter Outreach Platform

Search a billion-profile talent corpus and generate reviewable outreach grounded in a selected candidate and job.

Practice
System designLast reported Oct 2026

Design a Time Series Metrics Database

Design a high-cardinality metrics database for durable ingestion, range queries, rollups, late data, and retention.

Practice
System designLast reported Oct 2026

Design a Job-Click Prediction Platform

Train and serve job-click predictions from member, job, and interaction data without leakage or train-serving skew.

Practice
System designLast reported Sep 2026

Design an Ads Bidding, Pacing, and Forecast Platform

Design an online bid and budget-pacing path backed by a rule-based pacer and a versioned machine-learning forecast pipeline with a safe fallback.

Practice
System designLast reported Sep 2026

Malicious IP Traffic Filtering Platform

Design a global system that derives time-bounded IP traffic decisions and enforces them at low-latency ingress points.

Practice
System designLast reported Sep 2026

Design a High-Throughput Single-Node Key-Value Store

Design one-node storage for fifty million key-value pairs and a million operations per second, then define the boundary where the constraint must change.

Practice
System designLast reported Aug 2026

Design a Job Listing Freshness Platform

Design a platform that detects stale job listings, reconciles conflicting evidence, and keeps candidate-facing discovery current.

Practice
System designLast reported Aug 2026

Design a Rolling Shared-Article Leaderboard

Maintain top-N shared articles across five-minute, one-hour, and twenty-four-hour rolling windows.

Practice
System designLast reported Aug 2026

Design a Ranked Hybrid Social Feed

Design a scalable ranked feed that combines queued fanout, read-time merging, bounded inbox history, and immediate visibility for a user's own posts.

Practice

03 · About these questions

Where these LinkedIn questions come from

Each question on this page is tagged LinkedIn in FastPrep's problem bank. The report count and month show how often and how recently it was reported from LinkedIn interviews.

Past reports help you choose what to practice first. They can't tell you which questions, format or platform your own interview will use.

  • Only questions tagged LinkedIn appear on this page.
  • Each coding question shows its stage and last report date when known.
  • These are not official, private or leaked LinkedIn questions.

04 · FAQ

LinkedIn interview questions: FAQ

For hiring news and timelines, see the LinkedIn hiring insights page.

01What are the stages of the LinkedIn interview?

The 67 LinkedIn coding questions on FastPrep come from the online assessment (8 questions), phone screens (32 questions) and onsite rounds (30 questions). Some questions were reported in more than one stage. Stages differ by role, level and date, so check your invitation for your own process.

02What does the LinkedIn OA look like?

8 of the 67 LinkedIn coding questions on FastPrep come from the online assessment. By difficulty: 4 hard, 3 medium and 1 easy. Common OA topics: Array, Dynamic Programming and Binary Search. The latest OA report is from Mar 2025.

03How hard is the LinkedIn interview?

Most LinkedIn coding questions on FastPrep are medium. By difficulty, the 67 rated questions are 41 medium, 14 easy and 12 hard.

04What topics come up in LinkedIn coding interviews?

Across 67 LinkedIn coding questions, the most common topics are Array (24 questions), Hash Table (14 questions), String (11 questions), Sorting (10 questions) and Math (9 questions).

05What are the most asked LinkedIn interview questions?

The most reported questions are “Max Points on a Line” (4 reports), “Explore an Unknown Grid and Find a Path” (4 reports) and “Known Words Matching Phone Digits” (4 reports).

06Why does this LinkedIn plan emphasize repeated queries?

The public inventory contains exercises such as repeated word-distance queries and large sorted-array operations, where preprocessing can change query cost. That makes reuse of prior work a useful study theme. It is an editorial recommendation from the practice set, not a claim that every LinkedIn interview asks the same pattern.

07Is FastPrep affiliated with LinkedIn?

No. FastPrep is an independent interview prep site and is not affiliated with LinkedIn. These are practice questions from FastPrep's problem bank, not official, private or leaked LinkedIn questions.

08How do you know which stage a LinkedIn question is from?

Each question's stage comes from the reports behind it. A question can be reported from more than one stage, and the process can change by role, level, location and year, so treat the stage as a guide, not a promise.

09Which LinkedIn interview stage should I practice first?

The stage named in your invitation or recruiter message. If you don't know the stage yet, start with the stage that has the most questions, then practice explaining and testing your code out loud.

10Can this page tell me exactly what my LinkedIn interview will ask?

No. Report counts, stages and dates show what came up before and help you choose what to practice first. They can't predict the questions, order, timing or platform of your own interview.

Next step

Pick a question. Solve it end to end.

Start with the stage named in your invitation. Past reports show what came up before, not what you will be asked.

Back to the question list