Interview Intel · ServiceNow

ServiceNow coding interview
questions, leaked.

84 problems reported across recent ServiceNow interviews. Top patterns: array, string, dynamic programming. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

ServiceNow's technical interviews lean heavily on array and string manipulation. You'll face 84 problems across their assessments, with 63 in the medium difficulty band. Arrays dominate the distribution at 49 problems, followed by strings at 25 and dynamic programming at 19. This means you're spending most of your prep time on sliding windows, two-pointer work, and subarray logic. The hard problems test your ability to combine patterns: Trapping Rain Water mixes arrays, two pointers, and stacks. If you hit a wall on any of these hybrid problems during the live assessment, StealthCoder runs invisibly and surfaces a working solution in seconds.

Tracked problems
84
Easy
10/ 12%
Medium
63/ 75%
Hard
11/ 13%

Top problems at ServiceNow

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Trapping Rain WaterHARD
100.0
02Subarray Product Less Than KMEDIUM
100.0
03Valid ParenthesesEASY
97.9
04Group AnagramsMEDIUM
97.9
05LRU CacheMEDIUM
95.5
06Generate ParenthesesMEDIUM
93.0
07Lexicographically Smallest String After Operations With ConstraintMEDIUM
93.0
08Find Minimum Diameter After Merging Two TreesHARD
93.0
09Number of Distinct Roll SequencesHARD
93.0
10Longest Substring Without Repeating CharactersMEDIUM
87.0
11Merge IntervalsMEDIUM
79.4
12Best Time to Buy and Sell StockEASY
79.4
13Design HashMapEASY
79.4
14Zigzag ConversionMEDIUM
79.4
15Move ZeroesEASY
79.4
16Container With Most WaterMEDIUM
74.5
17First Missing PositiveHARD
74.5
18Two SumEASY
74.5
19Maximal SquareMEDIUM
74.5
20Kth Largest Element in an ArrayMEDIUM
74.5
21Daily TemperaturesMEDIUM
74.5
22Number of IslandsMEDIUM
68.6
23Search in Rotated Sorted ArrayMEDIUM
68.6
24Validate Binary Search TreeMEDIUM
68.6
25String CompressionMEDIUM
68.6
26LFU CacheHARD
68.6
27Reverse Linked ListEASY
68.6
28Maximum Product SubarrayMEDIUM
68.6
29Pacific Atlantic Water FlowMEDIUM
68.6
30Top K Frequent WordsMEDIUM
68.6
31Longest Palindromic SubstringMEDIUM
68.6
32Median of Two Sorted ArraysHARD
68.6
33Binary Tree Right Side ViewMEDIUM
60.9
34Meeting Rooms IIMEDIUM
60.9
35Number of Distinct Substrings in a StringMEDIUM
60.9
36Reverse Words in a String IIMEDIUM
60.9
37Set Matrix ZeroesMEDIUM
60.9
38Longest Consecutive SequenceMEDIUM
60.9
39Number of Visible People in a QueueHARD
60.9
40Asteroid CollisionMEDIUM
60.9
41Vowels of All SubstringsMEDIUM
60.9
42Valid Parenthesis StringMEDIUM
60.9
43Validate IP AddressMEDIUM
60.9
44Maximum SubarrayMEDIUM
60.9
45Fraction to Recurring DecimalMEDIUM
60.9
46Largest NumberMEDIUM
60.9
47First Unique Character in a StringEASY
60.9
48Sum Root to Leaf NumbersMEDIUM
60.9
49Check if a Parentheses String Can Be ValidMEDIUM
50.3
50Number of Distinct IslandsMEDIUM
50.3

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual ServiceNow OA. The proctor cannot see it. Screen share cannot detect it. Made for the engineer who has done the work but might still blank with a webcam pointed at him.

Get StealthCoder
Topic distribution
What this means

The problem set is pattern-heavy, not algorithm-heavy. Arrays and strings make up roughly 60 percent of the workload, so drilling Subarray Product Less Than K, Longest Substring Without Repeating Characters, and Group Anagrams pays immediate dividends. Dynamic programming appears in 19 problems but often as a secondary pattern: it pairs with arrays in Best Time to Buy and Sell Stock or with strings in Generate Parentheses. Two-pointer and sliding-window techniques unlock half your wins. Hash tables show up in 18 problems, mostly for caching and constraint tracking. The hard problems test synthesis: Trapping Rain Water demands you layer array traversal, two pointers, and monotonic stacks. BFS and DFS are lower frequency but non-negotiable for tree and graph variants. StealthCoder becomes your safety net on the synthesis problems where you'd normally need five minutes to unwind the approach.

Companies with similar patterns

If you prepped for ServiceNow, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass ServiceNow.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made for the engineer who has done the work but might still blank with a webcam pointed at him. Works on HackerRank, CodeSignal, CoderPad, and Karat.

ServiceNow interview FAQ

Should I focus on arrays first for ServiceNow?+

Yes. Arrays account for 49 of 84 problems. Start with sliding-window array problems (Subarray Product Less Than K, Longest Substring Without Repeating Characters) and two-pointer work (Move Zeroes, Merge Intervals). You'll see immediate pattern recognition.

How much dynamic programming do I need?+

Dynamic programming appears in 19 problems but rarely standalone. It's always paired with arrays or strings. Drill it as a secondary technique after mastering array and string fundamentals. Trapping Rain Water and Generate Parentheses are the synthesis cases to understand deeply.

What's the hardest part of ServiceNow's assessment?+

The hard problems (11 total) combine three or four patterns. Trapping Rain Water uses arrays, two pointers, dynamic programming, and stacks together. If you only know one pattern, you'll stall. Hybrid problem fluency matters more than single-technique depth.

Is hash-table design a big focus?+

Hash tables appear in 18 problems, but most are straightforward lookups. LRU Cache and Design HashMap are the design problems worth deep practice. They test your understanding of hash collisions and backing data structures, not just the pattern itself.

How many string problems should I solve?+

25 string problems are on the list, but many overlap with array and hash-table patterns. Prioritize Valid Parentheses, Longest Substring Without Repeating Characters, and Generate Parentheses. You'll see string manipulation paired with sliding windows or backtracking most often.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and ServiceNow. StealthCoder is not affiliated with ServiceNow.