Linkedin Coding Interview Questions

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 (Easy)
  2. Best Time to Buy and Sell Stock (Easy)
  3. Can Place Flowers (Easy)
  4. Design HashMap (Easy)
  5. Diameter of Binary Tree (Easy)
  6. Find Smallest Letter Greater Than Target (Easy)
  7. Find the Index of the First Occurrence in a String (Easy)
  8. Intersection of Two Linked Lists (Easy)
  9. Invert Binary Tree (Easy)
  10. Isomorphic Strings (Easy)
  11. Long Pressed Name (Easy)
  12. Maximum Depth of Binary Tree (Easy)
  13. Merge Sorted Array (Easy)
  14. Merge Two Binary Trees (Easy)
  15. Merge Two Sorted Lists (Easy)
  16. Roman to Integer (Easy)
  17. Same Tree (Easy)
  18. Second Minimum Node In a Binary Tree (Easy)
  19. Shortest Word Distance (Easy)
  20. Sqrt(x) (Easy)
  21. Sum of All Odd Length Subarrays (Easy)
  22. Symmetric Tree (Easy)
  23. Two Sum (Easy)
  24. Two Sum III - Data structure design (Easy)
  25. Valid Parentheses (Easy)
  26. Valid Perfect Square (Easy)
  27. 01 Matrix (Medium)
  28. Accounts Merge (Medium)
  29. Can I Win (Medium)
  30. Closest Leaf in a Binary Tree (Medium)
  31. Delete Node in a BST (Medium)
  32. Evaluate Division (Medium)
  33. Exclusive Time of Functions (Medium)
  34. Find K Closest Elements (Medium)
  35. Find K Pairs with Smallest Sums (Medium)
  36. Find Largest Value in Each Tree Row (Medium)
  37. Find Leaves of Binary Tree (Medium)
  38. Flatten a Multilevel Doubly Linked List (Medium)
  39. Implement Rand10() Using Rand7() (Medium)
  40. Insert Delete GetRandom O(1) (Medium)
  41. Is Graph Bipartite? (Medium)
  42. K Closest Points to Origin (Medium)
  43. Koko Eating Bananas (Medium)
  44. Longest Palindromic Subsequence (Medium)
  45. Max Area of Island (Medium)
  46. Max Consecutive Ones III (Medium)
  47. Minimum Add to Make Parentheses Valid (Medium)
  48. Open the Lock (Medium)
  49. Palindromic Substrings (Medium)
  50. Partition Equal Subset Sum (Medium)
  51. Partition Labels (Medium)
  52. Partition to K Equal Sum Subsets (Medium)
  53. Possible Bipartition (Medium)
  54. Random Pick with Weight (Medium)
  55. Robot Bounded In Circle (Medium)
  56. Shuffle an Array (Medium)
  57. Subarray Sum Equals K (Medium)
  58. Sum of Square Numbers (Medium)
  59. Task Scheduler (Medium)
  60. The Maze (Medium)
  61. Valid Parenthesis String (Medium)
  62. Valid Triangle Number (Medium)
  63. Validate Stack Sequences (Medium)
  64. All O`one Data Structure (Hard)
  65. Best Meeting Point (Hard)
  66. Closest Binary Search Tree Value II (Hard)
  67. Count Different Palindromic Subsequences (Hard)
  68. Count Integers in Intervals (Hard)
  69. Expression Add Operators (Hard)
  70. Find the Number of Subarrays Where Boundary Elements Are Maximum (Hard)
  71. Insert Delete GetRandom O(1) - Duplicates allowed (Hard)
  72. Integer to English Words (Hard)
  73. Kth Smallest Product of Two Sorted Arrays (Hard)
  74. Largest Color Value in a Directed Graph (Hard)
  75. Largest Rectangle in Histogram (Hard)
  76. LFU Cache (Hard)
  77. Longest Valid Parentheses (Hard)
  78. Making A Large Island (Hard)
  79. Max Points on a Line (Hard)
  80. Max Stack (Hard)
  81. Maximize Subarrays After Removing One Conflicting Pair (Hard)
  82. Maximum Number of Non-overlapping Palindrome Substrings (Hard)
  83. Median of Two Sorted Arrays (Hard)
  84. Merge k Sorted Lists (Hard)
  85. Minimum Deletions to Make Array Divisible (Hard)
  86. Minimum Window Subsequence (Hard)
  87. Minimum Window Substring (Hard)
  88. Number of Visible People in a Queue (Hard)
  89. Paint House II (Hard)
  90. Paint House III (Hard)
  91. Robot Room Cleaner (Hard)
  92. Serialize and Deserialize Binary Tree (Hard)
  93. Serialize and Deserialize N-ary Tree (Hard)
  94. Smallest Range Covering Elements from K Lists (Hard)
  95. Text Justification (Hard)
  96. Time to Cross a Bridge (Hard)
  97. User Purchase Platform (Hard)
  98. Valid Number (Hard)
  99. Word Ladder (Hard)
  100. Word Ladder II (Hard)

Prepare for the rest of the Linkedin process

Other companies