i
ServiceNow
Work with us
Filter interviews by
The four pillars of object-oriented programming are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class). Example: private variables in a class.
Inheritance: Creating new classes based on existing classes, inheriting their attributes and methods. Example: a 'Dog' class inheriting from an 'Animal' class.
Polymorphism: Th...
Given an array of N meetings, find a subarray with sum 0.
Use a hash table to store the cumulative sum of the array elements.
If the same sum is encountered again, it means the subarray between the two indices has a sum of 0.
Handle edge cases like when the subarray starts from index 0 or when the subarray ends at the last index.
Trees and stacks are fundamental data structures used in software engineering for organizing and storing data efficiently.
Trees are hierarchical data structures with nodes connected by edges. Examples include binary trees, AVL trees, and B-trees.
Stacks are linear data structures that follow the Last In First Out (LIFO) principle. Examples include function call stack and undo/redo stack.
I have a Bachelor's degree in Business Administration and 5 years of experience in administrative roles.
Bachelor's degree in Business Administration
5 years of experience in administrative roles
Your task is to find the ‘K-th’ smallest element in a given Binary Search Tree (BST).
A Binary Search Tree is a binary tree in which for each node, all elements ...
Find the K-th smallest element in a Binary Search Tree.
Implement a function to find the K-th smallest element in a BST
Traverse the BST in-order and keep track of the count of nodes visited
Return the value of the K-th smallest node
Handle cases where the K-th smallest element does not exist by returning -1
Determine if an array contains a Pythagorean triplet by checking whether there are three integers x, y, and z such that x2 + y2 = z2 within the array.
The first line...
Detect if an array contains a Pythagorean triplet by checking if there are three integers x, y, and z such that x^2 + y^2 = z^2.
Iterate through all possible combinations of three integers in the array and check if x^2 + y^2 = z^2.
Use a nested loop to generate all possible combinations efficiently.
Return 'yes' if a Pythagorean triplet is found, otherwise return 'no'.
Given an N x M
integer matrix, if an element is 0, set its entire row and column to 0's, and return the matrix. Specifically, if a cell has a value 0 (i.e., matrix[i][j] ...
To solve the Set Matrix Zeros problem, we can use O(1) space by utilizing the first row and column to store information about zeros in the rest of the matrix.
Iterate through the matrix and use the first row and column to mark rows and columns that need to be zeroed out.
After marking, iterate through the matrix again and zero out the rows and columns based on the marks in the first row and column.
Remember to handle...
You are provided with an integer N
. The objective is to return a 2-dimensional list representing Pascal’s triangle up to row N
.
A Pascal's triangle is a triangular arra...
Return a 2D list representing Pascal's triangle up to row N.
Iterate through each row up to N, calculating each value based on the values from the previous row
Use a nested loop to generate the triangle efficiently
Consider edge cases like N=1 separately to return [[1]]
Remember to handle the constraints given in the problem statement
I applied via Approached by Company and was interviewed in Dec 2024. There were 3 interview rounds.
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Use dynamic programming to find the longest palindromic substring in a given string.
Iterate through the string and expand around each character to find palindromes.
Store the length of the longest palindrome found so far.
Return the substring based on the start and end indices of the longest palindrome.
To serialize and deserialize a tree, use a recursive approach to traverse the tree and store the data in a suitable format.
Use pre-order traversal to serialize the tree by storing the node values in a list or string.
For deserialization, reconstruct the tree by recursively building nodes from the serialized data.
Consider using JSON or XML format for serialization to easily store and retrieve tree structure.
Use regex library to match given regex with string.
Use a regex library like re in Python to match the given regex with the string.
Check if the regex matches the string using the library functions.
Handle cases where the regex contains special characters like . and * appropriately.
Throttling is a technique used to control the rate of requests sent to a server.
Throttling helps prevent server overload by limiting the number of requests processed at a time.
Implementing a throttle function involves setting a maximum request rate and delaying excess requests.
Example: Implementing a throttle function in a web application to limit the number of API calls made to a third-party service.
Example: Throttlin...
Sort the squares of elements in a sorted array and return the sorted response.
Iterate through the array and square each element.
Store the squared values in a new array.
Sort the new array and return it.
A promise is a commitment to do something in the future, typically used for asynchronous operations in JavaScript.
Promises are used to handle asynchronous operations in JavaScript.
They represent a value that may be available now, in the future, or never.
Promises have three states: pending, fulfilled, or rejected.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
Event loop is a mechanism that allows for asynchronous execution of code by managing the order of events in a single thread.
Event loop continuously checks the call stack for any functions that need to be executed, and processes them in a non-blocking manner.
Different types of queues in event loop include microtask queue (Promise callbacks), macrotask queue (setTimeout, setInterval callbacks), and animation frame queue ...
Virtual DOM is a lightweight copy of the actual DOM, used to improve performance by minimizing direct manipulation of the real DOM.
Virtual DOM is a concept used in frameworks like React to optimize rendering performance.
Changes are first made to the virtual DOM, which is then compared to the real DOM to identify the minimal updates needed.
This approach reduces the number of actual DOM manipulations, resulting in faster...
I applied via LinkedIn and was interviewed in Aug 2024. There were 2 interview rounds.
Scope refers to the visibility and accessibility of variables in a program. Logical operators are used to perform logical operations in code.
Scope in programming refers to where in the code a variable can be accessed. It can be global, local, or block scope.
To solve an error in the code, first identify the error message or behavior causing the issue. Then, debug the code by checking for syntax errors, logical errors, o...
To get data in a table using js, you can use DOM manipulation methods like getElementById or querySelector. Other ways to print output include console.log and innerHTML. A block in js is a set of statements enclosed in curly braces.
Use getElementById or querySelector to get data in a table using js
Other ways to print output include console.log and innerHTML
A block in js is a set of statements enclosed in curly braces, ...
Seeking new challenges and growth opportunities in a different environment.
Looking for new challenges and opportunities for growth
Interested in gaining experience in a different industry or technology
Seeking a better work-life balance or company culture
Wanting to work with a different team or leadership style
First round include mcq related sql ,linux
I applied via Company Website and was interviewed in Sep 2024. There were 2 interview rounds.
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
In first round 4 coding question like 1 dsa 2 database and one is api and question is very simple . coding round was conducted in hackerrank
Again same but dsa question and oops concept in deep level
I applied via Company Website and was interviewed in Aug 2024. There were 5 interview rounds.
I applied via Job Portal and was interviewed in Oct 2024. There were 3 interview rounds.
Hackerrank test - DSA, RestAPI, SQL
Implementing a 'Close Friends' feature in a social media platform.
Allow users to create a list of close friends to share exclusive content with
Provide options for users to customize privacy settings for their close friends list
Include a notification feature for when a user is added to someone else's close friends list
Top trending discussions
Some of the top questions asked at the ServiceNow interview -
The duration of ServiceNow interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 120 interview experiences
Difficulty level
Duration
based on 442 reviews
Rating in categories
5-7 Yrs
Not Disclosed
10-12 Yrs
Not Disclosed
8-10 Yrs
Not Disclosed
Software Engineer
536
salaries
| ₹23 L/yr - ₹40 L/yr |
Senior Software Engineer
471
salaries
| ₹30 L/yr - ₹54.7 L/yr |
Technical Support Engineer
145
salaries
| ₹12.1 L/yr - ₹21.2 L/yr |
Software Developer
120
salaries
| ₹22.3 L/yr - ₹39.5 L/yr |
Content Data Analyst
95
salaries
| ₹2.8 L/yr - ₹4.1 L/yr |
Oracle
Amdocs
Automatic Data Processing (ADP)
24/7 Customer