Infosys private limited interview experience Real time questions & tips from candidates to crack your interview

Digital Specialist Engineer

Infosys private limited
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Aptitude , Algorithm, Stack, Queue, Tree, Graph, Hash Map, Linked List
Tip
Tip

Tip 1 : Just be thorough with all the concepts of OOPS, DBMS & Programming Language.
Tip 2 : Practice all the important Coding Questions.
Tip 3 : Be also prepared for HR.

Application process
Where: Campus
Eligibility: Above 7 CGPA and 75% overall percentage without pending backlogs
Resume Tip
Resume tip

Tip 1 : Proofread your resume numerous times.
Tip 2 : Consider an Online Supplement - No matter how long you’ve been in a job, or how much you’ve accomplished there, you shouldn’t have more than five or six bullets in a given section.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date7 Mar 2022
Coding problem2

1. Ninja Game

Hard
20m average time
75% success
0/120
Asked in companies
AmazonAtlassianMeesho

Ninja and his friend are playing a game. They are having ‘N’ piles and each pile contains ‘A[i]’ amount of stones in it. Ninja will make the first move.

In each move, a player can choose any pile and remove any number of stones ( at least one ) from that pile. The player who cannot make a move loses the game.

Assuming both players play optimally, output 1 if Ninja wins the game and 0 if Ninja loses the game.

Example :
N = 3
A = [ 3, 4, 5 ]

Explanation : 

One of the optimal ways to play the game is : 

Ninja removes 3 stones from the first pile : [ 0, 4, 5 ].
Friend removes 3 stones from the second pile : [ 0, 1, 5 ].
Ninja removes 3 stones from the third pile : [ 0, 1, 1 ].
Friend removes 1 stone from the second pile : [ 0, 0, 1 ].
Ninja removes 1 stones from the third pile : [ 0, 0, 0 ].

Thus Ninja wins the game here.
Try solving now

2. Take Out Chocolates

Moderate
40m average time
50% success
0/80

On your birthday, your friends gifted you 'N' boxes of chocolates, which are represented as an array 'A' of 'N' positive integers where 'A[i]' denotes the number of chocolates in the i-th box. You want to give these boxes as return gifts to your guests but with an equal number of chocolates in each box. For that, you are going to perform the following operation on the boxes, where each operation is as follows:

Choose a positive integer 'x'.
If any of the boxes contains more than 'x' chocolates, take out the extra chocolates from that box, i.e., if 'A[i]' > 'x', make 'A[i]' = 'x'  ( for all 'i' where 1 <= 'i' <= 'N')

The cost of an operation is the total number of chocolates taken out from all the boxes, i.e., cost = (sum of 'A' before operation) - (sum of 'A' after operation).

Your task is to find the minimum number of operations such that there is an equal number of chocolates in each box and the cost of each operation does not exceed 'K'.

Note :
1. 'x' can be any positive integer of your choice. It may or may not be present in array 'A'.
2. 'K' is large enough to have at least one 'x' for the operation.
Example :
N = 4
K = 5
A = [ 5, 2, 3, 4 ]

In the first operation, choose x = 3, the updated array 'A' becomes [3, 2, 3, 3]. The cost of this operation is (5+2+3+4)-(3+2+3+3) = 3.

In the second operation, choose x = 2, the updated array 'A' becomes [2, 2, 2, 2]. The cost of this operation is (3+2+3+3)-(2+2+2+2) = 3.

After the second operation, all elements in array 'A' become equal. Hence return 2 as our final answer.

We can't choose x = 2 in our first operation, because (5+2+3+4)-(2+2+2+2) = 6 which exceeds K = 5.
Try solving now
02
Round
Medium
HR Round
Duration30 Minutes
Interview date17 Apr 2022
Coding problem1

1. Basic HR Questions

Who is your ideal and why so?
How do you deal with failures?
Are you comfortable in relocating, in case the need arises?
Do you have any questions for me?

Here's your problem of the day

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

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
Digital Specialist Engineer
3 rounds | 3 problems
Interviewed by Infosys private limited
1042 views
0 comments
0 upvotes
Digital Specialist Engineer
2 rounds | 4 problems
Interviewed by Infosys private limited
1124 views
0 comments
0 upvotes
Digital Specialist Engineer
1 rounds | 2 problems
Interviewed by Infosys private limited
1144 views
0 comments
0 upvotes
Digital Specialist Engineer
3 rounds | 4 problems
Interviewed by Infosys private limited
875 views
0 comments
0 upvotes