LinkedIn Coding Interview Questions: 19 Tagged Problems
19 coding problems tagged LinkedIn — 4 easy · 11 medium · 4 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 19
- By difficulty: 4 easy · 11 medium · 4 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
19 problems the CodeKairo catalogue tags as commonly asked in LinkedIn's coding rounds — 4 easy, 11 medium and 4 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (7), Depth-First Search (6) and Trees (5). The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by LinkedIn, which CodeKairo is not affiliated with.
LinkedIn study plan by topic
All 19 problems tagged LinkedIn over 2 weeks, about 11 h 5 min of solving, grouped by technique in the order they build on each other — Two Pointers, Sliding Window, Stack and Simulation and 10 more.
Week 1: Two Pointers, Sliding Window, Stack +4
8 problems on Two Pointers, Sliding Window, Stack, Simulation, Greedy, Heap and Bitmask, easiest first within each topic.
- Rotate List Medium
- Smallest Range Covering Elements from K Lists Hard
- Exclusive Time of Functions Medium
- Text Justification Hard
- Valid Number Hard
- Can Place Flowers Easy
- Find K Pairs with Smallest Sums Medium
- Partition to K Equal Sum Subsets Medium
Week 2: Trees, Backtracking, Breadth-First Search +4
11 problems on Trees, Backtracking, Breadth-First Search, Union Find, Dynamic Programming, Game Theory and Rolling Hash, easiest first within each topic.
- Symmetric Tree Easy
- Maximum Depth of Binary Tree Easy
- Second Minimum Node In a Binary Tree Easy
- Lowest Common Ancestor of a Binary Search Tree Medium
- Find Largest Value in Each Tree Row Medium
- Combination Sum II Medium
- Word Ladder Hard
- Graph Valid Tree Medium
- Paint House Medium
- Can I Win Medium
- Repeated DNA Sequences Medium
All problems tagged LinkedIn
Easy (4)
- Second Minimum Node In a Binary Tree Tree, Depth-First Search
- Maximum Depth of Binary Tree Tree, Depth-First Search, Breadth-First Search
- Symmetric Tree Tree, Depth-First Search, Breadth-First Search
- Can Place Flowers Array, Greedy
Medium (11)
- Rotate List Linked List, Two Pointers
- Find Largest Value in Each Tree Row Tree, Depth-First Search, Breadth-First Search
- Lowest Common Ancestor of a Binary Search Tree Tree, Binary Search, Depth-First Search
- Can I Win Math, Dynamic Programming, Bit Manipulation
- Combination Sum II Array, Backtracking
- Partition to K Equal Sum Subsets Dynamic Programming, Backtracking, Bitmask
- Exclusive Time of Functions Array, Stack
- Repeated DNA Sequences Hash Table, String, Sliding Window
- Find K Pairs with Smallest Sums Array, Heap (Priority Queue)
- Paint House Array, Dynamic Programming
- Graph Valid Tree Depth-First Search, Breadth-First Search, Union Find
Hard (4)
- Valid Number String, Simulation
- Text Justification Array, String, Simulation
- Smallest Range Covering Elements from K Lists Array, Hash Table, Greedy
- Word Ladder Hash Table, String, Breadth-First Search
Topics LinkedIn asks most
- Arrays 7 problems
- Depth-First Search 6 problems
- Trees 5 problems
- Breadth-First Search 5 problems
- Strings 4 problems
- Hash Table 3 problems
- Dynamic Programming 3 problems
- Sliding Window 2 problems
- Simulation 2 problems
- Greedy 2 problems
- Heap 2 problems
- Bitmask 2 problems