LinkedIn Coding Interview Questions
Real coding, system design, and DSA questions from LinkedIn loops - with worked solutions and active-recall review.
- Messenger App
Send a message, trust it arrives. An outbox that survives process kills and ordering that holds across reconnects.
Android System Designhard3mo+5
- Valid Parentheses
Five escalating takes on one bracket string: validate it, point editor squigglies at it, mine the longest valid substring, repair a broken file, and validate with a corruptable wildcard.
Codinghard3mo+12
- LRU Cache
Bounded-memory caching: get it correct, then evict the least recently used, then make every operation O(1), then serve recency queries and TTL expiry.
Codingmedium1w+7
- Lowest Common Ancestor Family
Five levels of lowest-common-ancestor questions: on a binary search tree, on general binary trees, from parent pointers alone, across n-ary org charts, and in bulk batches against a static tree.
Codingmedium1w+4
- Valid Palindrome With Deletions
One string, four contracts: is it a palindrome, can it become one by deleting at most one character, at most k characters, and what is the exact minimum number of deletions it needs?
Codingmedium6d+2
- Nested List Weights
A nested list of integers gets three contracts - depth-weighted sum, reverse-weighted sum, then a flatten iterator that yields one integer at a time - with nesting deep enough to strain naive traversals.
Codingmedium6d - Kth Largest Element
Return the kth largest element from a stream of scores, where k=1 is the maximum and duplicates count separately. Levels tighten the budget - bounded memory, average-linear time, and answers that stay current as scores keep arriving.
Codingmedium6d