Linkedin Coding Interview Questions
99 coding problems are tagged as asked at Linkedin in interviews and online assessments reported by candidates. By difficulty they split into 24 basic, 59 intermediate and 16 advanced. The topics they most often combine with are Array, String, Hash Table, Tree.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Linkedin tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- House Robber (Intermediate)
- First Unique Character (Basic)
- Kth Largest Element (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Largest Rectangle in Histogram (Advanced)
- Reverse Words in a String (Basic)
- Integer to Roman (Intermediate)
- Edit Distance (Advanced)
- Reverse Integer (Intermediate)
- Longest Valid Parentheses (Advanced)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Partition Labels (Intermediate)
- Valid Parenthesis With Wildcards (Advanced)
- Count Palindromic Substrings (Intermediate)
- Find K Closest Elements (Intermediate)
- Minimum Knight Moves (Intermediate)
- Tree Nodes at Distance K (Advanced)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- House Robber II (Intermediate)
- Longest Palindromic Subsequence (Intermediate)
- Isomorphic Strings (Basic)
- Minimum Window Substring (Advanced)
- Number of Connected Components (Basic)
- Is Bipartite (Intermediate)
- Course Schedule Feasible (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Sparse Vector Dot Product (Intermediate)
- Text Justification (Intermediate)
- Reverse Linked List (Basic)
- Merge Two Sorted Lists (Basic)
- Reorder Linked List (Intermediate)
- Maximum Depth of Binary Tree (Basic)
- Symmetric Tree (Basic)
- Validate Binary Search Tree (Intermediate)
- Kth Smallest Value in a BST (Intermediate)
- Largest Value in Each Tree Row (Basic)
- Zigzag Level Order Traversal (Intermediate)
- Lowest Common Ancestor of Two Values (Intermediate)
- Same Tree (Basic)
- Invert Binary Tree (Basic)
- Level Order Traversal (Basic)
- Delete Node in a BST (Intermediate)
- Merge Two Binary Trees (Basic)
- Find Leaves of Binary Tree (Intermediate)
- Graph Valid Tree (Intermediate)
- Number of Islands (Basic)
- Rotting Oranges (Intermediate)
- Course Schedule Order (Intermediate)
- Open the Lock (Intermediate)
- Largest Color Value in a Directed Graph (Advanced)
- Longest String Chain (Intermediate)
- Can I Win (Advanced)
- Find First Occurrence (Basic)
- Valid Number (Advanced)
- Integer to English Words (Advanced)
- Min Stack Operations (Basic)
- Evaluate Reverse Polish Notation (Intermediate)
- Validate Stack Sequences (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Number of Visible People in a Queue (Advanced)
- K Closest Points to Origin (Intermediate)
- Task Scheduler (Intermediate)
- Find K Pairs With Smallest Sums (Intermediate)
- Process Tasks Using Servers (Advanced)
- Valid Sudoku (Intermediate)
- Shortest Word Distance (Basic)
- H-Index (Intermediate)
Related
- Linkedin basic problems
- Linkedin intermediate problems
- Linkedin advanced problems
- Linkedin Array problems
- Linkedin String problems
- Linkedin Hash Table problems
- Linkedin Tree problems
- Linkedin Sorting problems
- Linkedin Math problems
- Linkedin Binary Tree problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Linkedin problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Linkedin interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.