0 day streak

ServiceNow coding interview questions

Enterprise SaaSProduct Global Machine coding / LLD

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Word Break IIChoice per Position Hard Recursion & Backtracking Bloomberg Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +49 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, Airbnb +6 Solve
N-Queens2D Matrix Hard Recursion & Backtracking Netflix, Walmart Global Tech, Freshworks +1 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +38 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Subarrays with K Different IntegersSliding Window · Hash Map Hard Arrays & Hashing Morgan Stanley, Flipkart Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +45 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +41 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Microsoft, Apple +31 Solve
Generate ParenthesesPick / Not-Pick Medium Recursion & Backtracking Google, Microsoft, Bloomberg +13 Solve
First Missing PositiveIn-place Transformations Hard Arrays & Hashing Amazon, Microsoft, Netflix +15 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +10 Solve
Valid ParenthesesStack Basics Easy Stack Google, Microsoft, Meta +39 Solve
Sliding Window MaximumMonotonic Stack Hard Monotonic Stack Google, Amazon, Microsoft +13 Solve
Longest Repeating Character ReplacementSliding Window · Variable Medium Arrays & Hashing Meta, Uber, Adobe +4 Solve
Best Time to Buy and Sell Stock IIState Machine DP - Stock Problems Medium Dynamic Programming JPMorgan Chase, Meesho, Groww Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Microsoft, Apple, LinkedIn +29 Solve
Number of Visible People in a QueueMonotonic Stack Hard Monotonic Stack Citi, Meesho Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Microsoft, Apple +18 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, Nutanix, Atlassian +5 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +13 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +46 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +22 Solve
Largest NumberGreedy Medium Arrays & Hashing Adobe, Tower Research Capital, Zepto +4 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +17 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Meta, Apple, Netflix +14 Solve
Move ZeroesTwo Pointer Easy Arrays & Hashing Meta, Nvidia, Bloomberg +11 Solve
Asteroid CollisionStack Basics Medium Stack Amazon, Nvidia, DoorDash +10 Solve
Rotting OrangesMulti source BFS Medium Graphs Amazon, Microsoft, Databricks +17 Solve
LFU CacheLinked Lists Hard Design Data Structures Amazon, Apple, Netflix +10 Solve
Pow(x, n) (Binary Exponentiation)Search on Answer Range Medium Binary Search LinkedIn, Qualcomm, Tower Research Capital +2 Solve
Amount of Time for Binary Tree to Be InfectedChild + Ancestor Handling Medium Trees & BST Amazon, DoorDash, PhonePe +2 Solve
Binary Tree Right Side ViewViews Medium Trees & BST Meta, Oracle, Myntra +1 Solve
Pacific Atlantic Water FlowMulti source BFS Medium Graphs Google, Amazon, Nutanix +1 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Meta, Uber +9 Solve
4SumTwo Pointer Medium Arrays & Hashing Nvidia, Rubrik, Dream11 +2 Solve
Number of Distinct IslandsMatrix Graphs Medium Graphs Walmart Global Tech Solve
Also reported, being added to AlgoRung (8)

Number of Music Playlists · Lexicographically Smallest String After Operations With Constraint · Number of Distinct Roll Sequences · Find Minimum Diameter After Merging Two Trees · Maximum Score with Co-Prime Element · Check if a Parentheses String Can Be Valid · Minimum Number of Swaps to Make the String Balanced · Minimum One Bit Operations to Make Integers Zero

Questions people ask

What coding questions does ServiceNow ask most?

Word Break II, LRU Cache, Text Justification, N-Queens, Trapping Rain Water, Longest Substring Without Repeating Characters, Subarrays with K Different Integers, Merge Intervals.

Which topics come up in ServiceNow coding rounds?

graphs, intervals, sliding window, dynamic programming, backtracking, design data structure.

How hard are ServiceNow coding questions?

Of the reported questions, 5 are easy, 24 medium and 9 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.