ServiceNow Interview Prep

ServiceNow is a platform company, and the design round is where that shows. Customers do not just use the product, they extend it — their own tables, scripts, and workflows run inside your system. So every design question carries a constraint consumer companies never face: whatever you build has to survive both customer customisation and your own release train, at the same time, for thousands of tenants.

The loop itself is long and the pacing is unhurried, often four to six rounds spread over several weeks with gaps between them. The coding bar is honest medium rather than brutal, but there is usually a practical round where you work with existing code — extend it, debug it, make a change safely — instead of solving a puzzle on a blank page. That round rewards people who have actually maintained software.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, level, team
Online Assessment 60-90 min Timed coding, sometimes with MCQs
Technical Screen 45-60 min 1-2 DSA problems plus language fundamentals
Practical Coding Round 60 min Extend or debug working code, not a puzzle
System Design 60 min Multi-tenant platform, workflow, or data model
Object-Oriented Design 45-60 min Class modelling and extensibility
Hiring Manager / Panel 45-60 min Projects, trade-offs, collaboration

Not every candidate gets every round, and the order moves around. Reported loops run four to six interviews over two to four weeks, sometimes longer, with scheduling gaps that are normal rather than a signal. The design round is where levels get decided: a generic three-tier answer will pass a junior bar and stall a senior one, because what they are listening for is tenancy, configurability, and upgrade safety.


What ServiceNow Actually Tests

Derived from 67 reported ServiceNow-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 5 7%
Medium 48 72%
Hard 14 21%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Sliding Window & Two Pointers 13 19%
2 Dynamic Programming 13 19%
3 Arrays & Hashing 8 12%
4 Stack & Monotonic Stack 7 10%
5 Graphs 5 7%
6 Intervals, Greedy & Sorting 4 6%
7 Trees 3 4%
8 Binary Search 3 4%
9 Design (Coding) 2 3%
10 Heap / Priority Queue 2 3%

ServiceNow Signature Problems

These rank high on ServiceNow’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Maximum Score with Co-Prime Element Combinatorics + Number Theory Hard 2 of 142 LeetCode →
2 Find Minimum Diameter After Merging Two Trees Graph + Tree Hard 4 of 142 LeetCode →
3 Longest Repeating Character Replacement Sliding Window Medium 19 of 142 Solve →
4 Reverse Words in a String II Two Pointers Medium 4 of 142 LeetCode →
5 Check if a Parentheses String Can Be Valid Bracket Sequences + Stack Medium 8 of 142 LeetCode →
6 Minimum Number of Swaps to Make the String Balanced Bracket Sequences + Stack Medium 12 of 142 Solve →
7 Number of Visible People in a Queue Monotonic Stack Hard 15 of 142 Solve →
8 Maximum Profit From Trading Stocks DP Medium 5 of 142 LeetCode →
9 Minimum One Bit Operations to Make Integers Zero Memoization + Bit Manipulation Hard 5 of 142 LeetCode →
10 Critical Connections in a Network Biconnected Component + Bridge (Graph) Hard 9 of 142 LeetCode →
11 Amount of Time for Binary Tree to Be Infected Binary Tree + BFS Medium 11 of 142 LeetCode →
12 Number of Distinct Islands Hash Function + Union-Find Medium 12 of 142 Solve →
13 Pacific Atlantic Water Flow BFS + DFS Medium 12 of 142 Solve →
14 Fruit Into Baskets Sliding Window Medium 13 of 142 Solve →

If you are short on time, these carry more ServiceNow-specific signal per hour than the universal top-100 lists.


System Design (HLD) Problems Asked at ServiceNow

# Problem Difficulty Link
1 Rules Engine (Workflow and Approval Rules) Intermediate Read →
2 Distributed Job Scheduler (Long-Running Workflows) Advanced Read →
3 Delayed Trigger Service (SLA Timers and Escalations) Intermediate Read →
4 Notification System Intermediate Read →
5 Message Queue Advanced Read →
6 Rate Limiter (Per-Tenant Quotas) Beginner Read →
7 Distributed Key-Value Store Advanced Read →
8 Metrics and Monitoring System Intermediate Read →

LLD / Machine Coding Problems Asked at ServiceNow

The object-oriented design round is separate from system design and is about class boundaries, not boxes and arrows. Expect a requirement to be added at the halfway point specifically to test whether your model absorbs change — which is exactly what a configurable platform has to do in real life.

# Problem Difficulty Link
1 Task Scheduler Intermediate Read →
2 Queue Management (Approval Queues) Intermediate Read →
3 Pub Sub System Intermediate Read →
4 Order Management (Record Lifecycle) Intermediate Read →
5 File System (Hierarchical Records) Intermediate Read →
6 Rate Limiter Intermediate Read →

DSA Problems Asked at ServiceNow

64 problems across 12 pattern groups. Each group is allocated in proportion to its real share of ServiceNow’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 13 on the list.

# Problem Pattern Difficulty Link
1 Number of Distinct Roll Sequences Memoization + DP Hard LeetCode →
2 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
3 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →
4 Best Time to Buy and Sell Stock II Greedy + DP Medium Solve →
5 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
6 Jump Game II Greedy + DP Medium Solve →
7 Maximum Subarray Divide and Conquer + DP Medium Solve →
8 House Robber II DP Medium Solve →
9 Longest Common Subsequence LCS + DP Medium Solve →
10 Maximum Profit From Trading Stocks DP Medium LeetCode →
11 Minimum One Bit Operations to Make Integers Zero Memoization + Bit Manipulation Hard LeetCode →
12 Target Sum 0-1 Knapsack + Knapsack Problem Medium Solve →
13 Time Needed to Rearrange a Binary String DP Medium LeetCode →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 13 on the list.

# Problem Pattern Difficulty Link
14 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
15 String Compression Two Pointers Medium Solve →
16 Container With Most Water Greedy + Two Pointers Medium Solve →
17 Longest Repeating Character Replacement Sliding Window Medium Solve →
18 Minimum Number of Swaps to Make the String Balanced Bracket Sequences + Stack Medium Solve →
19 Move Zeroes Two Pointers Easy Solve →
20 Reverse Words in a String II Two Pointers Medium LeetCode →
21 4Sum Two Pointers Medium Solve →
22 Fruit Into Baskets Sliding Window Medium Solve →
23 Next Permutation Two Pointers Medium Solve →
24 Reverse Words in a String Two Pointers Medium Solve →
25 Sort Colors Bubble Sort + Quicksort Medium Solve →
26 Subarrays with K Different Integers Sliding Window Hard Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 8 on the list.

# Problem Pattern Difficulty Link
27 First Missing Positive Hash Table + Array Hard Solve →
28 Set Matrix Zeroes Matrix + Hash Table Medium Solve →
29 Two Sum Hash Table + Array Easy Solve →
30 Pacific Atlantic Water Flow BFS + DFS Medium Solve →
31 Pow(x, n) Recursion + Math Medium LeetCode →
32 Product of Array Except Self Prefix Sum Medium Solve →
33 Rotting Oranges BFS Medium Solve →
34 Subarray Sum Equals K Prefix Sum Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 7 on the list.

# Problem Pattern Difficulty Link
35 Valid Parentheses Bracket Sequences + Stack Easy Solve →
36 Asteroid Collision Stack Medium Solve →
37 Check if a Parentheses String Can Be Valid Bracket Sequences + Stack Medium LeetCode →
38 Number of Visible People in a Queue Monotonic Stack Hard Solve →
39 Daily Temperatures Monotonic Stack Medium Solve →
40 Next Greater Element II Monotonic Stack Medium Solve →
41 Simplify Path Stack Medium Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 5 on the list.

# Problem Pattern Difficulty Link
42 Find Minimum Diameter After Merging Two Trees Graph + Tree Hard LeetCode →
43 Number of Islands Union-Find + BFS Medium Solve →
44 Critical Connections in a Network Biconnected Component + Bridge (Graph) Hard LeetCode →
45 Number of Distinct Islands Hash Function + Union-Find Medium Solve →
46 Word Ladder Bidirectional Search + BFS Hard Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 4 on the list.

# Problem Pattern Difficulty Link
47 Lexicographically Smallest String After Operations With Constraint Greedy Medium LeetCode →
48 Gas Station Greedy Medium Solve →
49 Largest Number Greedy Medium Solve →
50 Merge Intervals Quicksort Medium Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 3 on the list.

# Problem Pattern Difficulty Link
51 Sliding Window Maximum Range Query + Monotonic Queue Hard Solve →
52 Amount of Time for Binary Tree to Be Infected Binary Tree + BFS Medium LeetCode →
53 Binary Tree Right Side View Binary Tree + BFS Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 3 on the list.

# Problem Pattern Difficulty Link
54 Find Peak Element Binary Search Medium Solve →
55 Median of Two Sorted Arrays Divide and Conquer + Binary Search Hard Solve →
56 Single Element in a Sorted Array Binary Search Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 2 on the list.

# Problem Pattern Difficulty Link
57 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
58 Word Break II Memoization + Trie Hard LeetCode →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 2 on the list.

# Problem Pattern Difficulty Link
59 Combination Sum Backtracking Medium Solve →
60 Letter Combinations of a Phone Number Backtracking Medium Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 2 on the list.

# Problem Pattern Difficulty Link
61 LRU Cache Doubly Linked List + Design Medium Solve →
62 LFU Cache Doubly Linked List + Design Hard Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 2 on the list.

# Problem Pattern Difficulty Link
63 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
64 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →

ServiceNow’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 13 (19%) Number of Distinct Roll Sequences, Trapping Rain Water, Generate Parentheses
2 Sliding Window & Two Pointers High 13 (19%) Longest Substring Without Repeating Characters, String Compression, Container With Most Water
3 Arrays & Hashing High 8 (12%) First Missing Positive, Set Matrix Zeroes, Two Sum
4 Stack & Monotonic Stack Medium-High 7 (10%) Valid Parentheses, Asteroid Collision, Check if a Parentheses String Can Be Valid
5 Graphs Medium-High 5 (7%) Find Minimum Diameter After Merging Two Trees, Number of Islands, Critical Connections in a Network
6 Intervals, Greedy & Sorting Medium-High 4 (6%) Lexicographically Smallest String After Operations With Constraint, Gas Station, Largest Number
7 Trees Medium 3 (4%) Sliding Window Maximum, Amount of Time for Binary Tree to Be Infected, Binary Tree Right Side View
8 Binary Search Medium 3 (4%) Find Peak Element, Median of Two Sorted Arrays, Single Element in a Sorted Array
9 Tries & String Search Medium 2 (3%) Longest Palindromic Substring, Word Break II
10 Backtracking Medium 2 (3%) Combination Sum, Letter Combinations of a Phone Number

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Sliding Window & Two Pointers, Arrays & Hashing covers the bulk of what ServiceNow actually asks. The rest is insurance for the one round that goes somewhere unexpected.


What Multi-Tenancy Means in the Design Round

This table is the difference between a passing and a strong ServiceNow design answer. The left column is what the interviewer probes, the middle is the answer that sounds fine and scores low, the right is what they are listening for.

Concern The answer that scores low What they are listening for
Data isolation “Each row has a tenant ID” Where the filter is enforced — in the query layer, not the caller — plus what happens if it is ever missing, and how you test that it cannot be
Noisy neighbours “We autoscale” Per-tenant quotas, work queues partitioned by tenant, and bounded resource use so one customer’s report cannot starve another’s workflow
Customisation “We expose an API” Customer-defined fields and logic running inside the platform, scoped so their code cannot break yours or another tenant’s
Upgrades “We deploy continuously” Additive schema changes, versioned metadata, deprecation windows, and how a customer’s customisation survives a release
Scale skew “We shard” Tenants differ by orders of magnitude, so sharding by tenant leaves hot shards; say how you detect and split the outliers
Query cost “We add an index” Tenant-aware indexes, pagination that works on the biggest tenant, and a limit on what a single tenant’s query can consume
Workflow durability “We use a queue” Persisted state machine, timers that survive restart, idempotent step execution, and at-least-once delivery handled explicitly
Access control “We check permissions in the service” A declarative model evaluated close to the data, consistent across API, UI, and background jobs
Backup and export Not mentioned Per-tenant restore, because real customers ask for their own data back without touching anyone else’s

A quick way to frame the whole round: a consumer system fails when it is slow, and a platform fails when one tenant’s configuration ruins someone else’s day. Design against the second.


The Practical Coding Round

Several reported loops include a round built on existing code rather than an empty editor. You are given a small working program and asked to extend it, fix it, or explain it. It is the closest thing in the loop to the actual job.

Signal What strong looks like What weak looks like
Orientation Skims structure, finds the entry point, runs the tests before changing anything Starts editing the first file that looks relevant
Diagnosis Forms a hypothesis, then checks it with a test or a log line Changes several things at once and hopes
Change size Smallest change that fixes the problem, in the existing style A refactor nobody asked for, mixed into the fix
Verification Adds a regression test that would have caught the bug Declares it fixed after a manual run
Communication Says what the code does before saying what is wrong with it Criticises the codebase instead of reading it

Prepare by doing it for real: clone an unfamiliar repository, pick an open issue, reproduce it, fix it, and add a test. Half an hour of that is worth more than an hour of algorithm practice for this specific round.


Behavioural Round

# Question
1 Tell me about a system you designed that other teams had to extend.
2 Tell me about a migration you ran without breaking existing users.
3 Tell me about a time you inherited code you did not understand and had to change it safely.
4 Tell me about a decision you made for the platform that was unpopular with one team.
5 Tell me about a production incident caused by a customer using your feature unexpectedly.
6 How do you decide whether something should be configurable or opinionated?
7 Tell me about a time you had to say no to a feature request.
8 Why ServiceNow, and what interests you about enterprise platforms?

Interviewers here respond to evidence that you have supported software other people build on: backward compatibility, deprecation, migrations, and the discipline of not breaking a customer who did something you did not anticipate. Stories about greenfield speed are worth less than stories about change under constraint.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Number of Distinct Roll Sequences, Trapping Rain Water, Generate Parentheses
2 Dynamic Programming (part 2) Best Time to Buy and Sell Stock II, Coin Change, Jump Game II
3 Sliding Window & Two Pointers (part 1) Longest Substring Without Repeating Characters, String Compression, Container With Most Water
4 Sliding Window & Two Pointers (part 2) Longest Repeating Character Replacement, Minimum Number of Swaps to Make the String Balanced, Move Zeroes
5 Arrays & Hashing (part 1) First Missing Positive, Set Matrix Zeroes, Two Sum
6 Arrays & Hashing (part 2) Pacific Atlantic Water Flow, Pow(x, n), Product of Array Except Self
7 Stack & Monotonic Stack Valid Parentheses, Asteroid Collision, Check if a Parentheses String Can Be Valid
8 Graphs Find Minimum Diameter After Merging Two Trees, Number of Islands, Critical Connections in a Network
9 Intervals, Greedy & Sorting Lexicographically Smallest String After Operations With Constraint, Gas Station, Largest Number
10 Trees Sliding Window Maximum, Amount of Time for Binary Tree to Be Infected, Binary Tree Right Side View
11 Binary Search Find Peak Element, Median of Two Sorted Arrays, Single Element in a Sorted Array
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for ServiceNow Interviews

  1. Design for tenants, not users. Say the word early and then show it: shared schema with a tenant key versus schema per tenant, noisy-neighbour isolation, per-tenant quotas, and what a tenant can never be allowed to read. This is the single clearest signal in a ServiceNow design round.
  2. Make upgrades a stated requirement. Customers customise the platform and you still ship releases. Versioned metadata, scoped extensions, additive-only schema changes, and a migration path belong in your answer before the interviewer asks.
  3. Treat the workflow engine as a real system. Durable state machines, timers that fire days later, idempotent steps, retries, compensation, and approvals that wait on a human. A workflow engine that lives in memory is the wrong answer here.
  4. Prepare for the practical coding round. Pull an unfamiliar open-source repo, read it, fix a small bug, and add a test. That is the skill being measured, and it is not the same skill as solving a timed puzzle.
  5. Know data modelling and SQL properly. The platform is metadata driven, so table inheritance, indexing, query cost, and what happens to a query when one tenant has a hundred times more rows than another all come up.
  6. Keep DSA at medium. The tagged data above skews medium: arrays, strings, hashing, trees, and a little dynamic programming. Fluency is enough; exotic algorithms are not what gates this loop.
  7. Expect the object-oriented round separately. Practice modelling a small domain in classes, then absorbing a new requirement without rewriting it. Interfaces, composition over inheritance, and a clear extension point are the vocabulary.

Other Company Prep


Round structures, durations, and the presence of individual rounds reflect commonly reported candidate experience rather than published ServiceNow documentation. The loop varies by org, level, and region, and timelines are frequently longer than the table suggests. Confirm your round list with your recruiter.