ServiceNow interview experience Real time questions & tips from candidates to crack your interview

Associate Software Engineer

ServiceNow
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, Database Management Systems, Object Orientated Programing, Operating Systems, Computer Networks
Tip
Tip

Tip 1 : Learn from the mistakes
Tip 2 : Consistency
Tip 3 : Never Give Up

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Simple and short providing the required information
Tip 2 : Single page resume with showing all the multiple projects which have done.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date31 Jul 2021
Coding problem1

The first round was an online Hackerrank test which had a duration of 60 minutes. It consisted of 1 Coding question and 15 MCQs that consisted of questions from topics like OS, DBMS, Algorithms, etc.

1. Maximum Area Square

Moderate
10m average time
90% success
0/80
Asked in companies
Urban Company (UrbanClap)FreshworksBNY Mellon

You have been given a non-empty grid ‘MAT’ consisting of only 0s and 1s. Your task is to find the area of maximum size square sub-matrix with all 1s.

If there is no such sub-matrix, print 0.

For example, for the following grid:

Input

The area of the largest square submatrix with all 1s is 4.
Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date31 Jul 2021
Coding problem2

This round lasted for an hour. The interviewer was friendly and he started off by giving his introduction. Then he asked about myself. After that he started giving me questions.

1. Common Elements In Three Sorted Arrays

Moderate
35m average time
65% success
0/80
Asked in companies
MicrosoftOptumSAP Labs

You are given three arrays 'A', 'B' and 'C' of length 'N', 'M' and 'K' respectively. All the three arrays are sorted in non-decreasing order. Your task is to find all such elements which are present in all the three given arrays.

Note:

1. The output array should have the same ordering of elements as the original arrays.
2. Even if a particular element appears more than once in each of the three arrays, it should still be present only once in the output array.
3. If there are no common elements in the arrays, return an empty array.

For example:

Consider the three arrays A = [ 2, 3, 4, 7 ] , B = [ 0, 0, 3, 5 ] , C = [ 1, 3, 8, 9 ]
The output array should be [ 3 ] as 3 is the only element which is present in all the three arrays.
Try solving now

2. Right View

Moderate
35m average time
65% success
0/80
Asked in companies
AdobeSAP LabsRazorpay

You have been given a Binary Tree of integers.

Your task is to print the Right view of it.

The right view of a Binary Tree is a set of nodes visible when the tree is viewed from the Right side and the nodes are printed from top to bottom order.

Problem approach

The problem can be solved using simple recursive traversal. We can keep track of level of a node by passing a parameter to all recursive calls. The idea is to keep track of maximum level also. And traverse the tree in a manner that right subtree is visited before left subtree. Whenever we see a node whose level is more than maximum level so far, we print the node because this is the last node in its level (Note that we traverse the right subtree before left subtree). Following is the implementation of this approach.

Try solving now
03
Round
Easy
Face to Face
Duration60 minutes
Interview date31 Jul 2021
Coding problem2

This interview was started with a general introduction followed by a little discussion on my past projects. He directly told me that. he will be asking two coding questions. If i solve them, then you are selected for the next round otherwise no.

1. Ugly Numbers

Moderate
0/80
Asked in companies
Goldman SachsServiceNowGameskraft

Ugly numbers are those numbers whose only prime factors are 2, 3, and 5. The first seven ugly numbers are 1, 2, 3, 4, 5, 6, 8, where 1 is an exception. You are given an integer ‘N’, print the ‘Nth’ ugly number. As the ugly number can be large, print the result modulo 10^9 + 7.

For example:
Let ‘N’ be: 10
The 10th ugly number is: 12
Try solving now

2. N-th Fibonacci Number

Moderate
40m average time
70% success
0/80
Asked in companies
MathworksAmazonOracle

You are given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.

Since the answer can be very large, return the answer modulo 10^9 +7.

Fibonacci number is calculated using the following formula:
F(n) = F(n-1) + F(n-2), 
Where, F(1) = F(2) = 1.
For Example:
For ‘N’ = 5, the output will be 5.
Try solving now
04
Round
Easy
HR Round
Duration60 minutes
Interview date31 Jul 2021
Coding problem0

This was the Technical + HR round.
The interviewer asked something from every project which I mentioned in my resume. 
He then tested my OOP concepts by asking some standard OOPs questions.
After this he asked me basic HR questions like strengths, weakness, favorite team with which you have worked till now, why ServiceNow?.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Software Engineer
2 rounds | 4 problems
Interviewed by ServiceNow
4287 views
0 comments
0 upvotes
SDE - 1
4 rounds | 7 problems
Interviewed by ServiceNow
3463 views
0 comments
0 upvotes
SDE - Intern
1 rounds | 2 problems
Interviewed by ServiceNow
1263 views
0 comments
0 upvotes
Associate Software Engineer
3 rounds | 3 problems
Interviewed by ServiceNow
1086 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
3 rounds | 10 problems
Interviewed by Amdocs
2370 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 4 problems
Interviewed by Amdocs
1933 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 5 problems
Interviewed by Optum
2116 views
0 comments
0 upvotes