# Linkedin Coding Interview Questions

> 180 DSA problems asked in Linkedin coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/linkedin
Last updated: 2026-11-28

180 DSA problems tagged as asked in Linkedin coding interviews and online assessments. Below are the first 100 of 180: 26 easy, 37 medium and 37 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Linkedin DSA problems, easiest first

1. [Article Views I](https://www.internhack.in/learn/dsa/problem/article-views-i) (Easy)
2. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
3. [Can Place Flowers](https://www.internhack.in/learn/dsa/problem/can-place-flowers) (Easy)
4. [Design HashMap](https://www.internhack.in/learn/dsa/problem/design-hashmap) (Easy)
5. [Diameter of Binary Tree](https://www.internhack.in/learn/dsa/problem/diameter-of-binary-tree) (Easy)
6. [Find Smallest Letter Greater Than Target](https://www.internhack.in/learn/dsa/problem/find-smallest-letter-greater-than-target) (Easy)
7. [Find the Index of the First Occurrence in a String](https://www.internhack.in/learn/dsa/problem/find-the-index-of-the-first-occurrence-in-a-string) (Easy)
8. [Intersection of Two Linked Lists](https://www.internhack.in/learn/dsa/problem/intersection-of-two-linked-lists) (Easy)
9. [Invert Binary Tree](https://www.internhack.in/learn/dsa/problem/invert-binary-tree) (Easy)
10. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
11. [Long Pressed Name](https://www.internhack.in/learn/dsa/problem/long-pressed-name) (Easy)
12. [Maximum Depth of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-depth-of-binary-tree) (Easy)
13. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
14. [Merge Two Binary Trees](https://www.internhack.in/learn/dsa/problem/merge-two-binary-trees) (Easy)
15. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
16. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
17. [Same Tree](https://www.internhack.in/learn/dsa/problem/same-tree) (Easy)
18. [Second Minimum Node In a Binary Tree](https://www.internhack.in/learn/dsa/problem/second-minimum-node-in-a-binary-tree) (Easy)
19. [Shortest Word Distance](https://www.internhack.in/learn/dsa/problem/shortest-word-distance) (Easy)
20. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
21. [Sum of All Odd Length Subarrays](https://www.internhack.in/learn/dsa/problem/sum-of-all-odd-length-subarrays) (Easy)
22. [Symmetric Tree](https://www.internhack.in/learn/dsa/problem/symmetric-tree) (Easy)
23. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
24. [Two Sum III - Data structure design](https://www.internhack.in/learn/dsa/problem/two-sum-iii-data-structure-design) (Easy)
25. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
26. [Valid Perfect Square](https://www.internhack.in/learn/dsa/problem/valid-perfect-square) (Easy)
27. [01 Matrix](https://www.internhack.in/learn/dsa/problem/01-matrix) (Medium)
28. [Accounts Merge](https://www.internhack.in/learn/dsa/problem/accounts-merge) (Medium)
29. [Can I Win](https://www.internhack.in/learn/dsa/problem/can-i-win) (Medium)
30. [Closest Leaf in a Binary Tree](https://www.internhack.in/learn/dsa/problem/closest-leaf-in-a-binary-tree) (Medium)
31. [Delete Node in a BST](https://www.internhack.in/learn/dsa/problem/delete-node-in-a-bst) (Medium)
32. [Evaluate Division](https://www.internhack.in/learn/dsa/problem/evaluate-division) (Medium)
33. [Exclusive Time of Functions](https://www.internhack.in/learn/dsa/problem/exclusive-time-of-functions) (Medium)
34. [Find K Closest Elements](https://www.internhack.in/learn/dsa/problem/find-k-closest-elements) (Medium)
35. [Find K Pairs with Smallest Sums](https://www.internhack.in/learn/dsa/problem/find-k-pairs-with-smallest-sums) (Medium)
36. [Find Largest Value in Each Tree Row](https://www.internhack.in/learn/dsa/problem/find-largest-value-in-each-tree-row) (Medium)
37. [Find Leaves of Binary Tree](https://www.internhack.in/learn/dsa/problem/find-leaves-of-binary-tree) (Medium)
38. [Flatten a Multilevel Doubly Linked List](https://www.internhack.in/learn/dsa/problem/flatten-a-multilevel-doubly-linked-list) (Medium)
39. [Implement Rand10() Using Rand7()](https://www.internhack.in/learn/dsa/problem/implement-rand10-using-rand7) (Medium)
40. [Insert Delete GetRandom O(1)](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1) (Medium)
41. [Is Graph Bipartite?](https://www.internhack.in/learn/dsa/problem/is-graph-bipartite) (Medium)
42. [K Closest Points to Origin](https://www.internhack.in/learn/dsa/problem/k-closest-points-to-origin) (Medium)
43. [Koko Eating Bananas](https://www.internhack.in/learn/dsa/problem/koko-eating-bananas) (Medium)
44. [Longest Palindromic Subsequence](https://www.internhack.in/learn/dsa/problem/longest-palindromic-subsequence) (Medium)
45. [Max Area of Island](https://www.internhack.in/learn/dsa/problem/max-area-of-island) (Medium)
46. [Max Consecutive Ones III](https://www.internhack.in/learn/dsa/problem/max-consecutive-ones-iii) (Medium)
47. [Minimum Add to Make Parentheses Valid](https://www.internhack.in/learn/dsa/problem/minimum-add-to-make-parentheses-valid) (Medium)
48. [Open the Lock](https://www.internhack.in/learn/dsa/problem/open-the-lock) (Medium)
49. [Palindromic Substrings](https://www.internhack.in/learn/dsa/problem/palindromic-substrings) (Medium)
50. [Partition Equal Subset Sum](https://www.internhack.in/learn/dsa/problem/partition-equal-subset-sum) (Medium)
51. [Partition Labels](https://www.internhack.in/learn/dsa/problem/partition-labels) (Medium)
52. [Partition to K Equal Sum Subsets](https://www.internhack.in/learn/dsa/problem/partition-to-k-equal-sum-subsets) (Medium)
53. [Possible Bipartition](https://www.internhack.in/learn/dsa/problem/possible-bipartition) (Medium)
54. [Random Pick with Weight](https://www.internhack.in/learn/dsa/problem/random-pick-with-weight) (Medium)
55. [Robot Bounded In Circle](https://www.internhack.in/learn/dsa/problem/robot-bounded-in-circle) (Medium)
56. [Shuffle an Array](https://www.internhack.in/learn/dsa/problem/shuffle-an-array) (Medium)
57. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
58. [Sum of Square Numbers](https://www.internhack.in/learn/dsa/problem/sum-of-square-numbers) (Medium)
59. [Task Scheduler](https://www.internhack.in/learn/dsa/problem/task-scheduler) (Medium)
60. [The Maze](https://www.internhack.in/learn/dsa/problem/the-maze) (Medium)
61. [Valid Parenthesis String](https://www.internhack.in/learn/dsa/problem/valid-parenthesis-string) (Medium)
62. [Valid Triangle Number](https://www.internhack.in/learn/dsa/problem/valid-triangle-number) (Medium)
63. [Validate Stack Sequences](https://www.internhack.in/learn/dsa/problem/validate-stack-sequences) (Medium)
64. [All O\`one Data Structure](https://www.internhack.in/learn/dsa/problem/all-oone-data-structure) (Hard)
65. [Best Meeting Point](https://www.internhack.in/learn/dsa/problem/best-meeting-point) (Hard)
66. [Closest Binary Search Tree Value II](https://www.internhack.in/learn/dsa/problem/closest-binary-search-tree-value-ii) (Hard)
67. [Count Different Palindromic Subsequences](https://www.internhack.in/learn/dsa/problem/count-different-palindromic-subsequences) (Hard)
68. [Count Integers in Intervals](https://www.internhack.in/learn/dsa/problem/count-integers-in-intervals) (Hard)
69. [Expression Add Operators](https://www.internhack.in/learn/dsa/problem/expression-add-operators) (Hard)
70. [Find the Number of Subarrays Where Boundary Elements Are Maximum](https://www.internhack.in/learn/dsa/problem/find-the-number-of-subarrays-where-boundary-elements-are-maximum) (Hard)
71. [Insert Delete GetRandom O(1) - Duplicates allowed](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1-duplicates-allowed) (Hard)
72. [Integer to English Words](https://www.internhack.in/learn/dsa/problem/integer-to-english-words) (Hard)
73. [Kth Smallest Product of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/kth-smallest-product-of-two-sorted-arrays) (Hard)
74. [Largest Color Value in a Directed Graph](https://www.internhack.in/learn/dsa/problem/largest-color-value-in-a-directed-graph) (Hard)
75. [Largest Rectangle in Histogram](https://www.internhack.in/learn/dsa/problem/largest-rectangle-in-histogram) (Hard)
76. [LFU Cache](https://www.internhack.in/learn/dsa/problem/lfu-cache) (Hard)
77. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
78. [Making A Large Island](https://www.internhack.in/learn/dsa/problem/making-a-large-island) (Hard)
79. [Max Points on a Line](https://www.internhack.in/learn/dsa/problem/max-points-on-a-line) (Hard)
80. [Max Stack](https://www.internhack.in/learn/dsa/problem/max-stack) (Hard)
81. [Maximize Subarrays After Removing One Conflicting Pair](https://www.internhack.in/learn/dsa/problem/maximize-subarrays-after-removing-one-conflicting-pair) (Hard)
82. [Maximum Number of Non-overlapping Palindrome Substrings](https://www.internhack.in/learn/dsa/problem/maximum-number-of-non-overlapping-palindrome-substrings) (Hard)
83. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
84. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
85. [Minimum Deletions to Make Array Divisible](https://www.internhack.in/learn/dsa/problem/minimum-deletions-to-make-array-divisible) (Hard)
86. [Minimum Window Subsequence](https://www.internhack.in/learn/dsa/problem/minimum-window-subsequence) (Hard)
87. [Minimum Window Substring](https://www.internhack.in/learn/dsa/problem/minimum-window-substring) (Hard)
88. [Number of Visible People in a Queue](https://www.internhack.in/learn/dsa/problem/number-of-visible-people-in-a-queue) (Hard)
89. [Paint House II](https://www.internhack.in/learn/dsa/problem/paint-house-ii) (Hard)
90. [Paint House III](https://www.internhack.in/learn/dsa/problem/paint-house-iii) (Hard)
91. [Robot Room Cleaner](https://www.internhack.in/learn/dsa/problem/robot-room-cleaner) (Hard)
92. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
93. [Serialize and Deserialize N-ary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-n-ary-tree) (Hard)
94. [Smallest Range Covering Elements from K Lists](https://www.internhack.in/learn/dsa/problem/smallest-range-covering-elements-from-k-lists) (Hard)
95. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
96. [Time to Cross a Bridge](https://www.internhack.in/learn/dsa/problem/time-to-cross-a-bridge) (Hard)
97. [User Purchase Platform](https://www.internhack.in/learn/dsa/problem/user-purchase-platform) (Hard)
98. [Valid Number](https://www.internhack.in/learn/dsa/problem/valid-number) (Hard)
99. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)
100. [Word Ladder II](https://www.internhack.in/learn/dsa/problem/word-ladder-ii) (Hard)

## Prepare for the rest of the Linkedin process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
