preloader
  • Home
  • Previous Questions

Contains previous problem statements given by various recruitors during their selection process.

1st Jan, 0001

Goldman Sachs

IDQuestions
1Two Sum
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
8String to Integer (atoi)
11Container With Most Water
153Sum
163Sum Closest
20Valid Parentheses
23Merge k Sorted Lists
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
39Combination Sum
42Trapping Rain Water
45Jump Game II
46Permutations
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
56Merge Intervals
62Unique Paths
64Minimum Path Sum
69Sqrt(x)
70Climbing Stairs
74Search a 2D Matrix
78Subsets
79Word Search
88Merge Sorted Array
91Decode Ways
98Validate Binary Search Tree
118Pascal’s Triangle
119Pascal’s Triangle II
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
134Gas Station
135Candy
141Linked List Cycle
146LRU Cache
153Find Minimum in Rotated Sorted Array
160Intersection of Two Linked Lists
162Find Peak Element
166Fraction to Recurring Decimal
179Largest Number
188Best Time to Buy and Sell Stock IV
189Rotate Array
200Number of Islands
209Minimum Size Subarray Sum
215Kth Largest Element in an Array
232Implement Queue using Stacks
236Lowest Common Ancestor of a Binary Tree
239Sliding Window Maximum
242Valid Anagram
253Meeting Rooms II
287Find the Duplicate Number
300Longest Increasing Subsequence
322Coin Change
338Counting Bits
344Reverse String
380Insert Delete GetRandom O(1)
387First Unique Character in a String
394Decode String
399Evaluate Division
443String Compression
452Minimum Number of Arrows to Burst Balloons
453Minimum Moves to Equal Array Elements
457Circular Array Loop
496Next Greater Element I
516Longest Palindromic Subsequence
518Coin Change II
532K-diff Pairs in an Array
547Number of Provinces
560Subarray Sum Equals K
588Design In-Memory File System
647Palindromic Substrings
657Robot Return to Origin
688Knight Probability in Chessboard
692Top K Frequent Words
696Count Binary Substrings
713Subarray Product Less Than K
724Find Pivot Index
730Count Different Palindromic Subsequences
735Asteroid Collision
740Delete and Earn
750Contain Virus
796Reaching Points
812Rotate String
817Design HashMap
856Consecutive Numbers Sum
874Backspace String Compare
892Shortest Subarray with Sum at Least K
967Minimum Falling Path Sum
980Find the Shortest Superstring
998Check Completeness of a Binary Tree
1013Fibonacci Number
1036Rotting Oranges
1055Pairs of Songs With Total Durations Divisible by 60
1074High Five
1119Robot Bounded In Circle
1126Minimum Cost to Connect Sticks
1146Greatest Common Divisor of Strings
1206Corporate Flight Bookings
1216Print Zero Even Odd
1252Break a Palindrome
1283Reformat Date
1298Reverse Substrings Between Each Pair of Parentheses
1320Remove All Adjacent Duplicates in String II
1331Path with Maximum Gold
1333Sort the Jumbled Numbers
1345Perform String Shifts
1428Jump Game III
1458Sort Integers by The Number of 1 Bits
1511Count Number of Teams
1514Minimum Value to Get Positive Step by Step Sum
1529Max Difference You Can Get From Changing an Integer
1575Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1850Minimum Length of String After Deleting Similar Ends
1897Maximize Palindrome Length From Subsequences
1951Find the Winner of the Circular Game
1960Check if the Sentence Is Pangram
1982Remove Duplicates From an Unsorted Linked List
2116Count Number of Pairs With Absolute Difference K
2192Minimum Cost Homecoming of a Robot in a Grid
2201Valid Arrangement of Pairs
2274Keep Multiplying Found Values by Two
2348Count Number of Texts
2392Successful Pairs of Spells and Potions
2456Construct Smallest Number From DI String
2504Find All Good Indices
2529Range Product Queries of Powers
2536Determine if Two Events Have Conflict
2577Count Palindromic Subsequences
2680Count Collisions of Monkeys on a Polygon