Linkedin Interview Questions
Practice the exact questions companies are asking right now.
Design a metrics platform without alerting
Design a metrics platform (like a simplified Prometheus/Datadog metrics product) that supports collecting, storing, querying, and visualizing metrics....
Compute graph distance and impacted services
Part A — Graph shortest distance (BFS) You are given an interface representing a node in an unweighted graph: `java interface Candidate { String id(...
Merge two N-ary trees by key rules
You are given two N-ary trees A and B. Each node has: - key (string): unique among siblings (i.e., within a node’s children list, no two children shar...
Design a scalable key-value store
System Design: Distributed Key-Value Store Design a distributed key-value (KV) storage service for a large-scale backend system. The service should ex...
Design an in-memory key-value store using maps
Design a low-level key-value store library (like an embedded storage engine) under an interview constraint: you may use only map/dictionary-like data ...
Find the k-th largest element in an array
Given an integer array nums and an integer k, return the k-th largest element in the array. Notes: - The k-th largest element is the element that woul...
Count connected land components in a grid
You are given a 2D grid of characters where: - '1' represents land - '0' represents water A group of land cells forms an island if they are connected ...
LinkedIn Product Case Opportunity Sizing
Case: Segment users, size sales professionals, and predict adoption for an email-promoted product Context: You are interviewing for a Data Scientist r...
Implement an LRU cache with follow-ups
Coding: Implement an LRU Cache and discuss concurrency Design and implement an in-memory Least Recently Used (LRU) cache data structure. The cache sho...
Compare heap and stack memory
Compare heap and stack memory. Explain how each is allocated and freed, typical lifetimes of data stored there, access patterns and performance charac...
Validate parentheses with one or three bracket types
Problem Given a string s consisting only of bracket characters, determine whether it is valid. A string is valid if: - Every opening bracket has a cor...
Identify Sales Professionals
Classifying Sales Professionals on LinkedIn Scenario You are tasked with building a machine learning system that automatically classifies LinkedIn mem...
Design a company-wide monitoring system
You are asked to design a monitoring system used company-wide. Goals - Collect and query telemetry for many services/hosts - Support alerting and dash...
Design scalable job scheduler and query dashboard
Design a scalable, fault-tolerant job scheduling system. The system should allow clients to schedule background jobs (for example, sending emails or r...
Measure Success of New B2B Product
Scenario A new LinkedIn B2B product has launched. Leadership wants to understand whether it adds value and what its growth potential is. Assume a typi...
Determine sanitized palindrome in string
Write a function that determines whether a string is a palindrome after removing non-alphanumeric characters and ignoring case (e.g., punctuation, whi...
Group words that map to same phone digits
Problem On a classic phone keypad (T9), letters map to digits: - 2: ABC, 3: DEF, 4: GHI, 5: JKL, - 6: MNO, 7: PQRS, 8: TUV, 9: WXYZ Given a list of lo...
Explain a past project and critique a prior team
Interview prompts 1. Project deep dive: Pick a past project you worked on and walk through it end-to-end. Be ready to use a whiteboard to explain arch...
Assess LinkedIn Newsfeed Health
Evaluate the Health of LinkedIn's Newsfeed Context You are assessing the health of LinkedIn's Newsfeed (the personalized, scrollable list of posts). A...
Frequent Traveler Case
Frequent Traveler: Definition, Features, Modeling, and Product Use Context: You are a data scientist at a professional networking platform. Using user...