grindmapcompany-wise LeetCode
All companies

ServiceNow LeetCode Questions

71 questions all-time · 7 easy · 51 medium · 13 hard
# Problem Difficulty Frequency Acceptance
1LRU Cache
Medium
100
0.5%
2Longest Substring Without Repeating Characters
Medium
95
0.4%
3Lexicographically Smallest String After Operations With Constraint
Medium
95
0.6%
4Number of Distinct Roll Sequences
Hard
95
0.6%
5Find Minimum Diameter After Merging Two Trees
Hard
95
0.6%
6Trapping Rain Water
Hard
89
0.7%
7Maximum Score with Co-Prime Element
Hard
89
0.3%
8Number of Islands
Medium
86
0.6%
9Generate Parentheses
Medium
82
0.8%
10String Compression
Medium
82
0.6%
11Valid Parentheses
Easy
77
0.4%
12Longest Repeating Character Replacement
Medium
77
0.6%
13Container With Most Water
Medium
71
0.6%
14First Missing Positive
Hard
71
0.4%
15Asteroid Collision
Medium
71
0.5%
16Sliding Window Maximum
Hard
71
0.5%
17Pacific Atlantic Water Flow
Medium
71
0.6%
18Best Time to Buy and Sell Stock II
Medium
71
0.7%
19Two Sum
Easy
63
0.6%
20Longest Palindromic Substring
Medium
63
0.4%
21Group Anagrams
Medium
63
0.7%
22Maximum Subarray
Medium
63
0.5%
23Best Time to Buy and Sell Stock
Easy
63
0.6%
24Kth Largest Element in an Array
Medium
63
0.7%
25Move Zeroes
Easy
63
0.6%
26Number of Visible People in a Queue
Hard
63
0.7%
27Coin Change
Medium
63
0.5%
28Rotting Oranges
Medium
63
0.6%
29Reverse Words in a String II
Medium
63
0.6%
30LFU Cache
Hard
63
0.5%
31Set Matrix Zeroes
Medium
63
0.6%
32Check if a Parentheses String Can Be Valid
Medium
63
0.5%
33Minimum Number of Swaps to Make the String Balanced
Medium
63
0.8%
34Jump Game II
Medium
63
0.4%
35Merge Two Sorted Lists
Easy
63
0.7%
36Median of Two Sorted Arrays
Hard
53
0.5%
37Zigzag Conversion
Medium
53
0.5%
38Merge Intervals
Medium
53
0.5%
39Vowels of All Substrings
Medium
53
0.6%
40Maximum Product Subarray
Medium
53
0.4%
41Largest Number
Medium
53
0.4%
42Reverse Linked List
Easy
53
0.8%
43Daily Temperatures
Medium
53
0.7%
44Minimum One Bit Operations to Make Integers Zero
Hard
53
0.8%
45Pow(x, n)
Medium
53
0.4%
46Amount of Time for Binary Tree to Be Infected
Medium
53
0.7%
47Time Needed to Rearrange a Binary String
Medium
53
0.5%
48Binary Tree Right Side View
Medium
53
0.7%
49Letter Combinations of a Phone Number
Medium
53
0.7%
50Palindrome Linked List
Easy
53
0.6%
514Sum
Medium
53
0.4%
52Number of Distinct Islands
Medium
53
0.6%
53Next Permutation
Medium
53
0.5%
54Gas Station
Medium
53
0.5%
55Find Peak Element
Medium
53
0.5%
56Target Sum
Medium
53
0.5%
57Single Element in a Sorted Array
Medium
53
0.6%
58Top K Frequent Elements
Medium
53
0.7%
59Subarrays with K Different Integers
Hard
53
0.7%
60House Robber II
Medium
53
0.5%
61Maximum Profit From Trading Stocks
Medium
53
0.5%
62Subarray Sum Equals K
Medium
53
0.5%
63Next Greater Element II
Medium
53
0.7%
64Word Ladder
Hard
53
0.5%
65Simplify Path
Medium
53
0.5%
66Fruit Into Baskets
Medium
53
0.5%
67Longest Common Subsequence
Medium
53
0.6%
68Combination Sum
Medium
53
0.8%
69Critical Connections in a Network
Hard
53
0.6%
70Reverse Words in a String
Medium
53
0.6%
71Sort Colors
Medium
53
0.7%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.

Similar companies