Goldman Sachs Coding Interview Questions

270 DSA problems tagged as asked in Goldman Sachs coding interviews and online assessments. Below are the first 100 of 270: 51 easy, 1 medium and 48 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Goldman Sachs DSA problems, easiest first

  1. Backspace String Compare (Easy)
  2. Best Time to Buy and Sell Stock (Easy)
  3. Check if Array Is Sorted and Rotated (Easy)
  4. Check if the Sentence Is Pangram (Easy)
  5. Climbing Stairs (Easy)
  6. Consecutive Characters (Easy)
  7. Count Number of Pairs With Absolute Difference K (Easy)
  8. Design HashMap (Easy)
  9. Determine if Two Events Have Conflict (Easy)
  10. Excel Sheet Column Number (Easy)
  11. Find Pivot Index (Easy)
  12. First Unique Character in a String (Easy)
  13. Fizz Buzz (Easy)
  14. Flood Fill (Easy)
  15. High Five (Easy)
  16. Implement Stack using Queues (Easy)
  17. Intersection of Two Linked Lists (Easy)
  18. Isomorphic Strings (Easy)
  19. Keep Multiplying Found Values by Two (Easy)
  20. Kth Largest Element in a Stream (Easy)
  21. Linked List Cycle (Easy)
  22. Majority Element (Easy)
  23. Maximum Average Subarray I (Easy)
  24. Maximum Population Year (Easy)
  25. Merge Sorted Array (Easy)
  26. Merge Two Sorted Lists (Easy)
  27. Middle of the Linked List (Easy)
  28. Minimum Number of Chairs in a Waiting Room (Easy)
  29. Minimum Value to Get Positive Step by Step Sum (Easy)
  30. Missing Number (Easy)
  31. Move Zeroes (Easy)
  32. Next Greater Element I (Easy)
  33. Pascal's Triangle (Easy)
  34. Pascal's Triangle II (Easy)
  35. Path Sum (Easy)
  36. Perform String Shifts (Easy)
  37. Power of Three (Easy)
  38. Power of Two (Easy)
  39. Remove One Element to Make the Array Strictly Increasing (Easy)
  40. Reverse Linked List (Easy)
  41. Reverse String (Easy)
  42. Robot Return to Origin (Easy)
  43. Roman to Integer (Easy)
  44. Sort Array by Increasing Frequency (Easy)
  45. Sqrt(x) (Easy)
  46. Symmetric Tree (Easy)
  47. Third Maximum Number (Easy)
  48. Two Sum (Easy)
  49. Two Sum IV - Input is a BST (Easy)
  50. Valid Palindrome (Easy)
  51. Valid Parentheses (Easy)
  52. Group Anagrams (Medium)
  53. Allocate Mailboxes (Hard)
  54. Best Time to Buy and Sell Stock III (Hard)
  55. Best Time to Buy and Sell Stock IV (Hard)
  56. Binary Tree Cameras (Hard)
  57. Binary Tree Maximum Path Sum (Hard)
  58. Burst Balloons (Hard)
  59. Bus Routes (Hard)
  60. Candy (Hard)
  61. Cherry Pickup (Hard)
  62. Count of Integers (Hard)
  63. Count Palindromic Subsequences (Hard)
  64. Find Median from Data Stream (Hard)
  65. Find Shortest Path with K Hops (Hard)
  66. Find the Closest Palindrome (Hard)
  67. First Missing Positive (Hard)
  68. Integer to English Words (Hard)
  69. Largest Rectangle in Histogram (Hard)
  70. LFU Cache (Hard)
  71. Longest Duplicate Substring (Hard)
  72. Longest Valid Parentheses (Hard)
  73. Maximal Rectangle (Hard)
  74. Maximize Palindrome Length From Subsequences (Hard)
  75. Maximum Profit in Job Scheduling (Hard)
  76. Median of Two Sorted Arrays (Hard)
  77. Meeting Rooms III (Hard)
  78. Merge k Sorted Lists (Hard)
  79. Minimum Number of Moves to Make Palindrome (Hard)
  80. Minimum Number of Refueling Stops (Hard)
  81. Minimum Window Substring (Hard)
  82. N-Queens (Hard)
  83. Numbers With Repeated Digits (Hard)
  84. Optimal Account Balancing (Hard)
  85. Palindrome Pairs (Hard)
  86. Parsing A Boolean Expression (Hard)
  87. Reaching Points (Hard)
  88. Reverse Nodes in k-Group (Hard)
  89. Russian Doll Envelopes (Hard)
  90. Shortest Subarray with Sum at Least K (Hard)
  91. Sliding Window Maximum (Hard)
  92. Sudoku Solver (Hard)
  93. Super Egg Drop (Hard)
  94. Text Justification (Hard)
  95. The Skyline Problem (Hard)
  96. Trapping Rain Water (Hard)
  97. Trapping Rain Water II (Hard)
  98. Unique Paths III (Hard)
  99. Valid Arrangement of Pairs (Hard)
  100. Word Ladder (Hard)

Prepare for the rest of the Goldman Sachs process

Other companies