Servicenow Coding Interview Questions

78 DSA problems tagged as asked in Servicenow coding interviews and online assessments. Below are all 78: 8 easy, 58 medium and 12 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Servicenow DSA problems, easiest first

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

Prepare for the rest of the Servicenow process

Other companies