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

Specialist Programmer

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

Interview preparation journey

expand-icon
Journey
I joined Infosys as a DSE, but while working, I continued solving 2-3 DSA questions daily to retain all the topics. Infosys conducts a Bridge program every quarter to promote a few employees to PP. I applied, and after a month, I took the coding round. Fortunately, I cracked it, and after a two-hour interview, I was selected.
Application story
Infosys conducts the Bridge program every quarter to promote a few employees to PP. I applied through this, and after a month, I took the coding round. Fortunately, I cracked it, and after a two-hour interview round, I was selected.
Why selected/rejected for the role?
I was selected for this role because I had a good grasp of DSA and projects. Moreover, I also prepared some important topics in OOPs and SQL, which are often neglected.
Preparation
Duration: 5 months
Topics: DP, Graphs, OOP, SQL, and project-related queries
Tip
Tip

Tip 1: Keep practicing DSA, mainly DP and Graphs.
Tip 2: Practice both DSA and SQL.

Application process
Where: Campus
Eligibility: There should be good internal rating.
Resume Tip
Resume tip

Tip 1: Keep all the skills highlighted.
Tip 2: Make it crisp and project-oriented.

Interview rounds

01
Round
Hard
Online Coding Test
Duration180 minutes
Interview date20 May 2022
Coding problem2

1. Rat In A Maze

Easy
15m average time
85% success
0/40
Asked in companies
OlaZSMicrosoft

You are given a starting position for a rat which is stuck in a maze at an initial point (0, 0) (the maze can be thought of as a 2-dimensional plane). The maze would be given in the form of a square matrix of order 'N' * 'N' where the cells with value 0 represent the maze’s blocked locations while value 1 is the open/available path that the rat can take to reach its destination. The rat's destination is at ('N' - 1, 'N' - 1). Your task is to find all the possible paths that the rat can take to reach from source to destination in the maze. The possible directions that it can take to move in the maze are 'U'(up) i.e. (x, y - 1) , 'D'(down) i.e. (x, y + 1) , 'L' (left) i.e. (x - 1, y), 'R' (right) i.e. (x + 1, y).

Note:
Here, sorted paths mean that the expected output should be in alphabetical order.
For Example:
Given a square matrix of size 4*4 (i.e. here 'N' = 4):
1 0 0 0
1 1 0 0
1 1 0 0
0 1 1 1 
Expected Output:
DDRDRR DRDDRR 
i.e. Path-1: DDRDRR and Path-2: DRDDRR

The rat can reach the destination at (3, 3) from (0, 0) by two paths, i.e. DRDDRR and DDRDRR when printed in sorted order, we get DDRDRR DRDDRR.
Try solving now

2. Rod cutting problem

Moderate
40m average time
75% success
0/80
Asked in companies
SamsungRazorpayPaytm (One97 Communications Limited)

Given a rod of length ‘N’ units. The rod can be cut into different sizes and each size has a cost associated with it. Determine the maximum cost obtained by cutting the rod and selling its pieces.

Note:
1. The sizes will range from 1 to ‘N’ and will be integers.

2. The sum of the pieces cut should be equal to ‘N’.

3. Consider 1-based indexing.
Try solving now
02
Round
Hard
Video Call
Duration120 minutes
Interview date23 Jun 2023
Coding problem3

1. Edit Distance

Moderate
30m average time
70% success
0/80
Asked in companies
HCL TechnologiesOYOGoldman Sachs

You are given two strings 'S' and 'T' of lengths 'N' and 'M' respectively. Find the "Edit Distance" between the strings.

Edit Distance of two strings is the minimum number of steps required to make one string equal to the other. In order to do so, you can perform the following three operations:

1. Delete a character
2. Replace a character with another one
3. Insert a character
Note:
Strings don't contain spaces in between.
Try solving now

2. Partition Equal Subset Sum

Moderate
25m average time
65% success
0/80
Asked in companies
AdobeAmazonOla

You are given an array 'ARR' of 'N' positive integers. Your task is to find if we can partition the given array into two subsets such that the sum of elements in both subsets is equal.

For example, let’s say the given array is [2, 3, 3, 3, 4, 5], then the array can be partitioned as [2, 3, 5], and [3, 3, 4] with equal sum 10.

Follow Up:

Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
Try solving now

3. Word Break

Moderate
15m average time
85% success
0/80
Asked in companies
Morgan StanleyFacebookApple

You are given a list of “N” strings A. Your task is to check whether you can form a given target string using a combination of one or more strings of A.

Note :
You can use any string of A multiple times.
Examples :
A =[“coding”, ”ninjas”, “is”, “awesome”]  target = “codingninjas”
Ans = true as we use “coding” and “ninjas” to form “codingninjas”
Try solving now

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
Specialist Programmer
2 rounds | 4 problems
Interviewed by Infosys private limited
924 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 3 problems
Interviewed by Infosys private limited
875 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 11 problems
Interviewed by Infosys private limited
1238 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 4 problems
Interviewed by Infosys private limited
130 views
0 comments
0 upvotes