271 questions · from 66 interviews · 22 asked more than once

LinkedIn interview questions

Every question candidates reported from their LinkedIn interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

LinkedIn coding and DSA questions

  1. 01

    Nested List Weight Sum II

    Given a nested list of integers, return the sum of all integers weighted by their depth from bottom up. The weight is defined as the inverse of the depth: integers on the deepest level have weight 1, the next level up weight 2, and so on.

    Medium · Asked 8 times · From LinkedIn IC2 SWE-Apps team, USA interview experience

  2. 02

    Find the Celebrity

    I encountered the problem Find the Celebrity.

    Medium · Asked 5 times · From LinkedIn SDE Interview Experience | Bangalore

  3. 03

    Binary Tree Upside Down

    Given the 'root' of a binary tree, turn it upside down and return the new root. You can only flip a binary tree if it is a 'left-child only' binary tree or a 'right-child only' binary tree, or a 'balanced' binary tree with at most one child on each side. The…

    Medium · Asked 5 times · From LinkedIn Interview Experience

  4. 04

    All O(1) Data Structure

    Design a data structure that supports increment , decrement , getMaxKey , and getMinKey operations, all in O(1) time.

    Hard · Asked 5 times · From LinkedIn | SSE | Systems Infra | Bengaluru | Offer

  5. 05

    Max Consecutive Ones III

    Given a binary array, find the length of the longest subarray containing only 1s after flipping at most k zeros.

    Medium · Asked 4 times · From LinkedIn | Senior Software Engineer | Bangalore | Offer

  6. 06

    Shortest Word Distance II

    Given a list of words and multiple queries for pairs of words, find the shortest distance (in indices) between the two words for each query.

    Medium · Asked 4 times · From SSWE - Phone Screen || LinkedIn

  7. 07

    Closest Binary Search Tree Value II

    I was asked the LeetCode problem Closest Binary Search Tree Value II.

    Hard · Asked 3 times · From LinkedIn | Loop - Second Interview | DSA | Software Engineer | IC2

  8. 08

    Max Stack

    Implement a MaxStack class which supports push, pop, top, peekMax, and popMax operations.

    Hard · Asked 3 times · From LinkedIn | SSE | Infrastructure Team | Rejected

  9. 09

    Insert Delete GetRandom O(1) - Duplicates Allowed

    Implement the Insert Delete GetRandom O(1) data structure, allowing for duplicate elements.

    Hard · Asked 3 times · From Linkedin | SSE | Oct 2025 | Rejected

  10. 10

    Valid Number

    Determine if a given string can be interpreted as a valid decimal number. The string may contain digits, signs, a decimal point, and an exponent part (e or E). Discuss whether numbers with exponential notation should be considered valid.

    Medium · Asked 2 times · From LinkedIn IC2 SWE-Apps team, USA interview experience

  11. 11

    Maximum Depth of Binary Tree

    Given the root of a binary tree, compute the maximum depth (or height) of the tree, which is the number of nodes along the longest path from the root node down to the farthest leaf node.

    Easy · Asked 2 times · From LinkedIn Loop Rounds IC2

  12. 12

    Max Points on a Line

    Given a set of points in a 2D plane, determine the maximum number of points that lie on the same straight line.

    Asked 2 times · From LinkedIn Loop Rounds IC2

  13. 13

    Find Leaves of Binary Tree

    The LeetCode problem Find Leaves of Binary Tree.

    Medium · Asked 2 times · From LinkedIn | SSE | Infrastructure Team | Rejected

  14. 14

    Number of Islands

    A coding problem similar to LeetCode problem 200, Number of Islands . The problem typically involves given an m x n 2D binary grid which represents a map of '1's (land) and '0's (water), and you need to count the number of islands. An island is surrounded by…

    Medium · Asked 2 times · From Linkedin - SSE System and Infra Role- First Screening Round experience - waiting for the next update

  15. 15

    Nested List Weight Sum

    Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer or a list (whose elements may also be integers or other lists).

    Medium · Asked 2 times · From LinkedIn | SSE | Systems Infra | Bengaluru | Offer

  16. 16

    K Closest Points to Origin

    Given a set of points in 2D space, find the K points closest to the origin (0,0). The problem was extended to finding K nearest neighbors to any arbitrary point in 2D space.

    Medium · Asked 2 times · From LinkedIn Senior Software Engineer Interview Experience (Systems Infra team) | Reject

  17. 17

    Bulb Switcher (Similar)

    A Data Structures & Algorithms question similar to LeetCode's Bulb Switcher problem.

    Medium · Asked 2 times · From LinkedIn| Software Engineer

  18. 18

    Celebrity Problem

    The classic Celebrity Problem.

    Medium · Asked 2 times · From LinkedIn [SSE] [Systems Infra] [Ghosted]

  19. 19

    Paint House

    There are a row of n houses, each can be painted with one of three colors: red, blue or green. The cost of painting each house with a certain color is different. I needed to paint all the houses such that no two adjacent houses have the same color. I had to…

    Medium · Asked 2 times · From LinkedIn | On-site | Systems and Infra

  20. 20

    Mobile Keypad Word Formation

    Given a mobile keypad where each number maps to a set of alphabets, along with a list of words, find all the words that can be formed using a given number sequence. There was also an extension to this problem.

    From Interview Experience || LinkedIn || Software Engineer || Applications Teams

  21. 21

    Longest Subarray with At Most K Ones

    Given a binary sequence, find the length of the longest contiguous subarray containing at most K 1s.

    From Interview Experience || LinkedIn || Software Engineer || Applications Teams

  22. 22

    Kth Closest Element in BST

    Find the Kth closest element in a Binary Search Tree (BST).

    From Interview Experience || LinkedIn || Software Engineer || Applications Teams

  23. 23

    LRU Cache Implementation with AI

    Boilerplate code was provided; four questions needed to be solved sequentially without manually modifying the code. AI had to be used for implementing solutions, debugging, and small data model changes.

    From Interview Experience || LinkedIn || Software Engineer || Applications Teams

  24. 24

    Zigzag Level Order Traversal

    Given a binary tree, return its node values in a zigzag level order traversal (also known as “snake” order), where the first level is traversed left‑to‑right, the second level right‑to‑left, and so on.

    From LinkedIn Loop Rounds IC2

  25. 25

    Minimum Length Substring

    Find the smallest substring of a given string that satisfies a specific condition (e.g., contains all required characters or meets a particular pattern). The exact requirement was not detailed in the post.

    From LinkedIn Loop Rounds IC2

124 more in the LinkedIn write-ups.

LinkedIn system design questions

  1. 01

    Design a Key-Value Store

    I was asked to design a Key-Value store. This involved discussing its purpose, storage, compute mechanisms, and sharding strategies.

    Hard · Asked 2 times · From LinkedIn Senior Software Engineer Interview Experience (Systems Infra team) | Reject

  2. 02

    Design Metrics Aggregation System

    Design a system for aggregating metrics.

    Hard · Asked 2 times · From Linkedin Staff Infra interview Experience

  3. 03

    Exception Tracking System Design

    Design a system that tracks exceptions thrown by a service and identifies the top K most frequently occurring and least frequently occurring exceptions within a sliding time window (e.g., from 8:30 to 8:34).

    From Interview Experience || LinkedIn || Software Engineer || Applications Teams

  4. 04

    Design Google Calendar

    Design a scalable calendar service like Google Calendar. Discuss architecture, core components, data storage, synchronization, scalability, and design trade‑offs.

    From LinkedIn Loop Rounds IC2

  5. 05

    Design a Highly Scalable NoSQL Key‑Value Store

    Design a system that can store fifty million key‑value pairs and handle one million queries per second, split evenly between reads and writes. The design should address scaling, high throughput, fault tolerance, and low latency.

    From LinkedIn interview experience

  6. 06

    Implement a Simple Rate Limiter

    If you had to implement a simple rate limiter, how would you do it?

    From LinkedIn | Senior Software Engineer | Bangalore | Offer

  7. 07

    Design Top‑N Leaderboard for Shared Articles

    Design a system to maintain a Top‑N leaderboard of the most‑shared articles over rolling windows of 5 minutes, 1 hour, and 24 hours.

    From LinkedIn | Senior Software Engineer | Bangalore | Offer

  8. 08

    Notification Delivery System Design

    Design LinkedIn's notification delivery system. Include requirements such as handling different notification types (connection requests, post likes, job recommendations, InMail), prioritization tiers, delivery channels (push, email, in‑app), scale (~900M…

    From LinkedIn Staff Software Engineer — Onsite Experience [April 2026]

  9. 09

    Evaluate New PYMK Model with Latency Trade‑off

    Hypothetical: You own LinkedIn's "People You May Know" system. The ML team proposes a new recommendation model that improves relevance by 15% but increases latency from 50ms to 200ms. Describe how you would evaluate whether to adopt the new model, including…

    From LinkedIn Staff Software Engineer — Onsite Experience [April 2026]

  10. 10

    Design Metric Collection and Querying System

    The system will both collect metrics from a large fleet of machines, and retrieve them over a requested period of time to be shown in an external visualization system. You can assume that a metric is represented by the [timestamp, node, metric, value] tuple.

    From Linkedin Loop || System design round || Software Engineer IC2

  11. 11

    Design a Metrics Platform

    I was tasked with designing a metrics platform. Key requirements included services publishing metrics, storing, aggregating, and displaying them on a dashboard, and implementing alerting thresholds.

    From LinkedIn SDE Interview Experience | Bangalore

  12. 12

    Scalable Statistics Collection and Aggregation System Design

    We have a big deployment with hundreds of machines each of which is exposing thousands of statistics. You can think that each statistic is represented by the tuple [source, metric-name, value]. We want to be able to collect and aggregate those tuples in a…

    Hard · From LinkedIn | SSE | Infrastructure Team | Rejected

  13. 13

    Design a Distributed Job Scheduler

    Design a distributed job scheduler. Follow up questions were asked as well on the design choices and I was asked if I had to lead the project then how would I go about it.

    Hard · From LinkedIn | SSE | Infrastructure Team | Rejected

  14. 14

    Design a fast key-value store

    Design a fast key-value store with some custome requirements. Focus was more on LLD part than the HLD.

    From LinkedIn SWE Infra Interview experience

  15. 15

    Second Pass Ranker System Design

    Design a "Second Pass Ranker" for the Feed serving billions of users. Constraint: No pre-existing embeddings.

    From AI Engineer | LinkedIn | Virtual Onsite | Rejected

  16. 16

    System Design: Metrics and Monitoring

    I was asked to design a system for collecting, storing, and visualizing metrics, as well as setting up monitoring and alerting. The discussion involved topics such as data ingestion, storage solutions (e.g., time-series databases), aggregation, dashboarding,…

    From LinkedIn Interview Experience

  17. 17

    System Design: Malicious/Spam URL Detection System

    I had to provide a High-Level Design for a system capable of detecting malicious or spam URLs. The discussion also covered the end-to-end execution plan for such a project, from initial design and development to deployment and ongoing maintenance, including…

    From LinkedIn Interview Experience

  18. 18

    API Design for High Write Traffic

    Design an API capable of handling 10,000 queries per second (QPS) for write traffic.

    From Linkedin | SSE | Oct 2025 | Rejected

  19. 19

    Design a Notification System

    Design a scalable notification system. Key requirements include implementing rate limiting for various notification categories (e.g., maximum 5 marketing notifications per user per day) and managing user preferences for different types of notifications.

    From Linkedin | SSE | Oct 2025 | Rejected

  20. 20

    Design a Lead Routing System

    Design a system to route leads to sales representatives efficiently. The system should handle approximately 15,000 leads per day, routing each lead individually to sales people based on criteria such as timezone and region. The product team must be able to…

    From Linkedin | SSE | Oct 2025 | Rejected

  21. 21

    Design a Metrics Aggregator and Monitoring System

    The system design round focused on designing a metrics aggregator and a monitoring system.

    Hard · From Linkedin - Senior Software Engineer (System and Infra) - USA - YEO - 5.5 years - Pending review

  22. 22

    Data Migration Between Data Centers

    Towards the end of the Host Manager round, I was given a system design-like question: 'How to migrate data from one data center to another, with certain conditions applied'.

    Hard · From Linkedin - Senior Software Engineer (System and Infra) - USA - YEO - 5.5 years - Pending review

  23. 23

    Database Normalization

    Explain database normalization concepts, including associated trade-offs like read/write performance and deduplication.

    From LinkedIn Interview Experience | IC-2 Infra | Bangalore | Technical Phone Screen

  24. 24

    Design Exception Metric Collection and Alarming System

    Design an Exception Metric Collection and Alarming System. Handle millions of exceptions per second. Support keyword-based search for exceptions. Provide Top K most frequent and Top K least frequent exception queries. Include an alerting mechanism when…

    Hard · From LinkedIn SSE Interview Experience

  25. 25

    Design Feature Button Click Counter

    Build a system to collect feature button click counts and show aggregated metrics over time for Product Managers.

    Medium · From LinkedIn SSE Interview Experience

33 more in the LinkedIn write-ups.

LinkedIn behavioural and HR questions

  1. 01

    Why LinkedIn?

    Why LinkedIn?

    Asked 2 times · From LinkedIn SWE Infra Interview experience

  2. 02

    Engineering Excellence Definition

    What does "engineering excellence" mean to you? How would you define it for a team rather than just for yourself?

    From LinkedIn Staff Software Engineer — Onsite Experience [April 2026]

  3. 03

    Improving Quality of an Inherited System

    Describe a system you inherited that had quality issues. How did you approach improving its quality?

    From LinkedIn Staff Software Engineer — Onsite Experience [April 2026]

  4. 04

    Why are you leaving my current company?

    Why are you leaving my current company?

    From LinkedIn SWE Infra Interview experience

  5. 05

    On-call in current team

    What does on-call look like in my current team?

    From LinkedIn SWE Infra Interview experience

  6. 06

    Mentoring Experience

    Discuss your experience with mentoring others.

    From Linkedin | SSE | Oct 2025 | Rejected

  7. 07

    Reason for Previous Job Change

    Discuss the reasons for your previous job change.

    From Linkedin | SSE | Oct 2025 | Rejected

  8. 08

    Differences Between Companies

    Describe the observed differences upon joining your current company compared to your previous one.

    From Linkedin | SSE | Oct 2025 | Rejected

  9. 09

    Experience with Operations/On-Call Work

    Discuss any experience you have with operations work, on-call duties, or similar responsibilities.

    From Linkedin | SSE | Oct 2025 | Rejected

  10. 10

    Conflict with Management

    Describe a conflict you faced with management and how you handled the situation.

    From Linkedin | SSE | Oct 2025 | Rejected

  11. 11

    Staying Current with Tech During Career Break

    Explain how you have kept up with advancements in the tech industry during a career break.

    From Linkedin | SSE | Oct 2025 | Rejected

  12. 12

    Interesting Tech Article/Topic

    Share one interesting thing you have recently read about in the tech industry. I specifically mentioned Discord's approach to indexing trillions of messages.

    From Linkedin | SSE | Oct 2025 | Rejected

  13. 13

    Technical Growth Over Past Year

    Describe your technical growth and development over the past year.

    From Linkedin | SSE | Oct 2025 | Rejected

  14. 14

    Explain a Project and Discuss Trade-offs

    I was asked to explain a project I had worked on, including details, follow-up questions, and discussions around trade-offs.

    From LinkedIn| Software Engineer

  15. 15

    Conflicting situations faced in any critical project

    Conflicting situations faced in any critical project.

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  16. 16

    Impactful project from which I was able to move out to other project with minimal disruption

    Impactful project from which I was able to move out to other project with minimal disruption.

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  17. 17

    Define a Quality Product/System

    How do you define a quality product/system?

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  18. 18

    Code Review Strategy

    Describe your strategy regarding code reviews.

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  19. 19

    Managing Projects with Junior Engineers

    Talk about a project that had many junior engineers and how I kept the project quality high/ If your team keeps growing and you get more junior engineers, what do you do?

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  20. 20

    Improving a Legacy Application as Staff SWE

    As a hypothetical situation, Imagine you join LinkedIn on a massive team that owns a legacy application. The application lacks adequate testing and monitoring and has slow response times. Consumers complain about this. Deployment of the application often…

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  21. 21

    Prioritizing Issues and Microservices Migration

    Rank the following in terms of priority: bugs, no testing, no monitoring, slowness. What do you tackle first? How do you eventually turn this into micro services?

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  22. 22

    Determining Success of a Service

    What do you look for when determining the success of a service?

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  23. 23

    Principles of Mentorship

    What are your principles of mentorship? How do you manage technical and non-technical mentorship?

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  24. 24

    Helping Engineers Grow

    Talk about a time where you helped grow engineers.

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

  25. 25

    Discuss a Complex, Large-Scale Project Led

    Talk in detail about the most complex and challenging project I led in the recent times which had a very large scale. I framed my answer step-by-step as follows (along with few follow-ups from the HM): Team and My role, Customer Problem & Business impact, Key…

    From LinkedIn | Staff Software Engineer | Interview Experience | June 2025 | Offer

10 more in the LinkedIn write-ups.

LinkedIn other questions

  1. 01

    Memoization Wrapper for Any Function (JavaScript)

    Implement a cache (memoization) function in JavaScript. First, write a Fibonacci function that uses caching to improve performance. Then generalize the solution by creating a higher‑order function that accepts any function as input and returns a cached…

    From Linkedin Senior Software Engineer- Frontend Focussed interview experience

  2. 02

    Vanilla JS Suggestion Feed UI with Close Icon

    Create a simple suggestion feed UI using vanilla JavaScript. The feed should display a list of items, each containing: - Username - Role - Details - A close (×) icon When the close icon of an item is clicked, the corresponding element should be removed from…

    From Linkedin Senior Software Engineer- Frontend Focussed interview experience

  3. 03
  4. 04

    Cache Hit/Miss Ratio Calculation

    Given different workload patterns, calculate or predict the cache hit and miss ratios, discussing how workload characteristics affect cache performance.

    From LinkedIn Loop Rounds IC2

  5. 05

    Java Internals Discussion

    Discussion on Java internals including multi-threading concepts (Callable/Runnable), HashMap internals, Concurrent HashMap, and JVM.

    From Linkedin SSE Interview

  6. 06

    Garbage Collector Internals

    How does Garbage Collector work? How does a Garbage Collector know which object to delete? Identify a case where the object has no references, but still the Garbage Collector does not delete the object

    From LinkedIn | SSE | Infrastructure Team | Rejected

  7. 07

    ACID Properties of Database

    ACID properties of Database

    From LinkedIn | SSE | Infrastructure Team | Rejected

  8. 08

    Transformation and Sorting Problem

    The first problem required explaining and solving a mathematical transformation followed by sorting. The second problem was about rejection sampling, similar to the rand7() → rand10() problem.

    Medium · From Linkedin | Software Engineer, Machine Learning Interview Experience

  9. 09

    Two-Pointer Implementation Problem

    This problem involved using a two-pointer technique to solve a specific array manipulation task.

    Medium · From Linkedin | Software Engineer, Machine Learning Interview Experience

  10. 10

    Rejection Sampling Problem

    The problem required generating a random number between 1-10 using a function that generates numbers between 1-7, similar to the rand7() → rand10() problem.

    Medium · From Linkedin | Software Engineer, Machine Learning Interview Experience

  11. 11

    Partition Array into K Subsets with Equal Sum

    The problem required partitioning an array into K subsets with equal sum, which is a classic backtracking problem.

    Hard · From Linkedin | Software Engineer, Machine Learning Interview Experience

  12. 12

    Cold-Start Recommender System

    The system design problem focused on creating a cold-start recommender system, discussing data preparation, feature engineering, handling sparse/implicit data, model training, and candidate generation.

    Hard · From Linkedin | Software Engineer, Machine Learning Interview Experience

  13. 13

    Recommendation and Ranking System

    This system design problem involved designing a recommendation and ranking system, covering aspects like data pipelines, feature engineering, and model deployment.

    Hard · From Linkedin | Software Engineer, Machine Learning Interview Experience

  14. 14

    Discuss System Issues

    Discuss any issues encountered in a previous system, focusing on performance, poor code, or similar aspects.

    From Linkedin | SSE | Oct 2025 | Rejected

  15. 15

    Software Design Patterns

    Explain what software design patterns are and why they are important.

    From Linkedin | SSE | Oct 2025 | Rejected

  16. 16

    CAP Theorem

    Explain the CAP theorem.

    From Linkedin | SSE | Oct 2025 | Rejected

  17. 17

    Concurrency vs. Parallelism

    Explain the difference between concurrency and parallelism.

    From Linkedin | SSE | Oct 2025 | Rejected

  18. 18

    Multithreading Code Output

    Determine the output of a given multithreading code snippet.

    From Linkedin | SSE | Oct 2025 | Rejected

  19. 19

    Measuring Project Performance and Success

    Discuss how project performance and success were measured. This includes details on performance testing methodologies and specific metrics observed, such as p90 latency.

    From Linkedin | SSE | Oct 2025 | Rejected

  20. 20

    Number of Islands and OS Basics

    The technical screening round started with a coding question similar to 'Number of Islands'. Following this, there was a 30-minute discussion on past projects and fundamental OS concepts including processes, threads, semaphores, mutexes, PCB, TCB, heap,…

    From Linkedin - Senior Software Engineer (System and Infra) - USA - YEO - 5.5 years - Pending review

  21. 21

    Process vs. Thread

    Differentiate between a process and a thread.

    From LinkedIn Interview Experience | IC-2 Infra | Bangalore | Technical Phone Screen

  22. 22

    Kafka Real-World Scenario

    I was presented with a real-world scenario question related to Kafka and its applications/issues.

    From LinkedIn Sr SWE - Systems and Infra | Phone Screen + Onsite | US | Reject

  23. 23

    Strategic Problem Approach

    The Hiring Manager presented a problem and asked how I would approach it, including which teams I would reach out to, how to structure approaches, and conducting PoCs, emphasizing that I didn't have to solve everything alone.

    From LinkedIn| Software Engineer

  24. 24

    HTTP Methods Discussion

    Discuss Theory Question Like HTTP Methods POST, GET, PUT and Delete WHy cannot we use POST to fetch data and GET to send data, what happens?

    From IC3 FullStack Engineer - Frontend Heavy @ Linkedln

  25. 25

    Accessibility Discussion

    Discuss Accessibility.

    From IC3 FullStack Engineer - Frontend Heavy @ Linkedln

4 more in the LinkedIn write-ups.

LinkedIn interview questions FAQ

What questions are asked in LinkedIn interviews?

Candidates reported 271 distinct questions across 66 LinkedIn interviews. 149 coding and DSA questions, 58 system design questions, 35 behavioural and HR questions, 29 other questions.

Which LinkedIn interview questions are asked most often?

The most repeated are "Nested List Weight Sum II" (8 times), "Find the Celebrity" (5 times), "Binary Tree Upside Down" (5 times), "All O(1) Data Structure" (5 times), "Max Consecutive Ones III" (4 times).

How difficult are LinkedIn interview questions?

Of the questions candidates rated, 7% were easy, 59% medium and 34% hard.