Microsoft vs ServiceNow Interview Questions

Microsoft lists 192 LeetCode interview questions while ServiceNow lists 71. They share 40 problems — 21% of Microsoft's bank and 56% of ServiceNow's. Focus on the overlap first, then drill into 152 Microsoft-only and 31 ServiceNow-only questions.

Read the full Microsoft vs ServiceNow preparation guide →

Overview

Microsoft

192 questions

Easy 55Medium 109Hard 28
ServiceNow

71 questions

Easy 7Medium 51Hard 13

Preparation Strategy

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

Step 2 — Company-specific depth: Add Microsoft-specific problems like Merge Sorted Array, Add Two Numbers, 3Sum and ServiceNow-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Microsoft
55
ServiceNow
7
Medium
Microsoft
109
ServiceNow
51
Hard
Microsoft
28
ServiceNow
13

Top Shared Topics

40 Shared Questions

High-priority problems to practice for both Microsoft and ServiceNow.

ProblemDifficulty
Two SumEasy
Longest Substring Without Repeating CharactersMedium
Longest Palindromic SubstringMedium
Trapping Rain WaterHard
Single Element in a Sorted ArrayMedium
Merge IntervalsMedium
Median of Two Sorted ArraysHard
Valid ParenthesesEasy
Maximum SubarrayMedium
Group AnagramsMedium
Merge Two Sorted ListsEasy
Container With Most WaterMedium
Sort ColorsMedium
Set Matrix ZeroesMedium
Letter Combinations of a Phone NumberMedium
Number of IslandsMedium
Generate ParenthesesMedium
Find Peak ElementMedium
Best Time to Buy and Sell StockEasy
Move ZeroesEasy
Next PermutationMedium
Combination SumMedium
First Missing PositiveHard
Jump Game IIMedium
Reverse Words in a StringMedium
Pow(x, n)Medium
4SumMedium
Gas StationMedium
Subarray Sum Equals KMedium
Sliding Window MaximumHard

Showing top 30 of 40 shared problems.

Unique to Microsoft (152)

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

ProblemDifficulty
Merge Sorted ArrayEasy
Add Two NumbersMedium
3SumMedium
Search in Rotated Sorted ArrayMedium
Reverse Nodes in k-GroupHard
Roman to IntegerEasy
Spiral MatrixMedium
Climbing StairsEasy
Rotate ImageMedium
Palindrome NumberEasy
Merge k Sorted ListsHard
Longest Common PrefixEasy

Unique to ServiceNow (31)

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

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
String CompressionMedium
Longest Repeating Character ReplacementMedium
Pacific Atlantic Water FlowMedium
Asteroid CollisionMedium
Number of Visible People in a QueueHard
Reverse Words in a String IIMedium
LFU CacheHard
Coin ChangeMedium

Frequently Asked Questions

How many LeetCode questions do Microsoft and ServiceNow share?

Microsoft and ServiceNow share 40 LeetCode interview questions. 152 problems appear only in Microsoft's list and 31 appear only in ServiceNow's list.

What topics overlap most between Microsoft and ServiceNow?

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

Which company asks harder LeetCode questions: Microsoft or ServiceNow?

Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. ServiceNow has 7 Easy, 51 Medium, and 13 Hard questions. ServiceNow has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Microsoft and ServiceNow?

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

Explore More