Samsung Coding Interview Questions

69 DSA problems tagged as asked in Samsung coding interviews and online assessments. Below are all 69: 15 easy, 37 medium and 17 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Samsung DSA problems, easiest first

  1. Best Time to Buy and Sell Stock (Easy)
  2. Convert Sorted Array to Binary Search Tree (Easy)
  3. Faulty Keyboard (Easy)
  4. Find the Width of Columns of a Grid (Easy)
  5. Guess Number Higher or Lower (Easy)
  6. Intersection of Two Linked Lists (Easy)
  7. Linked List Cycle (Easy)
  8. Longest Common Prefix (Easy)
  9. Maximum Product of Two Elements in an Array (Easy)
  10. Merge Sorted Array (Easy)
  11. Move Zeroes (Easy)
  12. Palindrome Number (Easy)
  13. Two Sum (Easy)
  14. Two Sum IV - Input is a BST (Easy)
  15. Valid Parentheses (Easy)
  16. 3Sum (Medium)
  17. Add Two Numbers (Medium)
  18. Coin Change (Medium)
  19. Divide Two Integers (Medium)
  20. Edit Distance (Medium)
  21. Exam Room (Medium)
  22. Find Maximum Value in a Constrained Sequence (Medium)
  23. Find Peak Element (Medium)
  24. Generate Parentheses (Medium)
  25. Is Graph Bipartite? (Medium)
  26. Jump Game II (Medium)
  27. Largest 1-Bordered Square (Medium)
  28. Longest Increasing Subsequence (Medium)
  29. Longest Palindromic Substring (Medium)
  30. LRU Cache (Medium)
  31. Make Sum Divisible by P (Medium)
  32. Mark Elements on Array by Performing Queries (Medium)
  33. Maximize Distance to Closest Person (Medium)
  34. Maximum Subarray (Medium)
  35. Meeting Rooms II (Medium)
  36. Merge Intervals (Medium)
  37. Minimum Cost of a Path With Special Roads (Medium)
  38. Next Permutation (Medium)
  39. Number of Islands (Medium)
  40. Number of Nodes in the Sub-Tree With the Same Label (Medium)
  41. Path with Maximum Probability (Medium)
  42. Permutations (Medium)
  43. Possible Bipartition (Medium)
  44. Remove K Digits (Medium)
  45. Rotate Array (Medium)
  46. Rotate Image (Medium)
  47. Rotting Oranges (Medium)
  48. Search in Rotated Sorted Array (Medium)
  49. Sort Colors (Medium)
  50. Stone Game IX (Medium)
  51. Subarray Product Less Than K (Medium)
  52. Word Search (Medium)
  53. Burst Balloons (Hard)
  54. Count Prefix and Suffix Pairs II (Hard)
  55. Design Graph With Shortest Path Calculator (Hard)
  56. Find Median from Data Stream (Hard)
  57. Maximum Height by Stacking Cuboids (Hard)
  58. Median of Two Sorted Arrays (Hard)
  59. Merge k Sorted Lists (Hard)
  60. Minimize Deviation in Array (Hard)
  61. Minimum Number of Operations to Make String Sorted (Hard)
  62. Number of Paths with Max Score (Hard)
  63. Partition Array Into Two Arrays to Minimize Sum Difference (Hard)
  64. Split Array Largest Sum (Hard)
  65. Substring with Concatenation of All Words (Hard)
  66. Trapping Rain Water (Hard)
  67. Trapping Rain Water II (Hard)
  68. Vertical Order Traversal of a Binary Tree (Hard)
  69. Word Ladder (Hard)

Prepare for the rest of the Samsung process

Other companies