Goldman Sachs vs ServiceNow Interview Questions

Goldman Sachs lists 261 LeetCode interview questions while ServiceNow lists 71. They share 45 problems — 17% of Goldman Sachs's bank and 63% of ServiceNow's. Focus on the overlap first, then drill into 216 Goldman Sachs-only and 26 ServiceNow-only questions.

Read the full Goldman Sachs vs ServiceNow preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
ServiceNow

71 questions

Easy 7Medium 51Hard 13

Preparation Strategy

Step 1 — Shared core: Solve the 45 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and ServiceNow.

Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like First Unique Character in a String, Fraction to Recurring Decimal, High Five and ServiceNow-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Goldman Sachs skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Goldman Sachs
48
ServiceNow
7
Medium
Goldman Sachs
165
ServiceNow
51
Hard
Goldman Sachs
48
ServiceNow
13

Top Shared Topics

45 Shared Questions

High-priority problems to practice for both Goldman Sachs and ServiceNow.

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Merge IntervalsMedium
Group AnagramsMedium
Number of IslandsMedium
Best Time to Buy and Sell StockEasy
Best Time to Buy and Sell Stock IIMedium
Two SumEasy
Maximum SubarrayMedium
Top K Frequent ElementsMedium
Kth Largest Element in an ArrayMedium
Sliding Window MaximumHard
Longest Repeating Character ReplacementMedium
Coin ChangeMedium
Subarray Sum Equals KMedium
Longest Palindromic SubstringMedium
Daily TemperaturesMedium
Valid ParenthesesEasy
Asteroid CollisionMedium
Generate ParenthesesMedium
Move ZeroesEasy
Find Peak ElementMedium
Reverse Linked ListEasy
Pow(x, n)Medium
Rotting OrangesMedium
Maximum Product SubarrayMedium

Showing top 30 of 45 shared problems.

Unique to Goldman Sachs (216)

Problems in Goldman Sachs's list that do not appear at ServiceNow.

ProblemDifficulty
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Find the Winner of the Circular GameMedium
Robot Bounded In CircleMedium
Decode WaysMedium
Search in Rotated Sorted ArrayMedium
Find Minimum in Rotated Sorted ArrayMedium
Better Compression of StringMedium
Knight Probability in ChessboardMedium
Pairs of Songs With Total Durations Divisible by 60Medium

Unique to ServiceNow (26)

Problems in ServiceNow's list that do not appear at Goldman Sachs.

ProblemDifficulty
Number of Distinct Roll SequencesHard
Lexicographically Smallest String After Operations With ConstraintMedium
Find Minimum Diameter After Merging Two TreesHard
Maximum Score with Co-Prime ElementHard
Pacific Atlantic Water FlowMedium
Number of Visible People in a QueueHard
Reverse Words in a String IIMedium
Minimum Number of Swaps to Make the String BalancedMedium
Check if a Parentheses String Can Be ValidMedium
Zigzag ConversionMedium
Vowels of All SubstringsMedium
Target SumMedium

Frequently Asked Questions

How many LeetCode questions do Goldman Sachs and ServiceNow share?

Goldman Sachs and ServiceNow share 45 LeetCode interview questions. 216 problems appear only in Goldman Sachs's list and 26 appear only in ServiceNow's list.

What topics overlap most between Goldman Sachs and ServiceNow?

The most common shared topics between Goldman Sachs and ServiceNow are Array (21 shared questions), Dynamic Programming (8 shared questions), Hash Table (7 shared questions), String (7 shared questions), Two Pointers (5 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Goldman Sachs or ServiceNow?

Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. ServiceNow has 7 Easy, 51 Medium, and 13 Hard questions. Goldman Sachs has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Goldman Sachs and ServiceNow?

Start with the 45 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 ServiceNow-specific questions to round out your prep.

Explore More