Infosys India Pvt. Ltd interview experience Real time questions & tips from candidates to crack your interview

Specialist Programmer

Infosys India Pvt. Ltd
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
Hi, I am currently serving my notice period at Accenture and have an offer from Infosys (DSE), with joining in April 2026. I graduated last year from Jaypee Institute of Information Technology, Noida, where I completed my B.Tech in Computer Science and Engineering. I have built a few projects using React and Node.js, and I am also actively involved in competitive programming. I graduated in June, and Infosys released hiring for 2025 in the same month. I had offers from mass hiring companies in the range of 3.6–4.6 LPA, but I was not satisfied with myself. So, I applied and aimed for the SP role.
Why selected/rejected for the role?
We were given two DSA questions to be solved on the Infosys Wingspan Portal onsite after the OA round. The condition was to solve at least one question to be considered for a genuine interview. I could not solve any of the questions.
Preparation
Duration: 4 months
Topics: Dynamic Programming, Binary Search, Graphs, Trees, Heaps
Tip
Tip

Tip 1: Data structures is a long-term journey, enjoy the learning process and avoid mugging up solutions.
Tip 2: Focus on impactful projects rather than random ones.
Tip 3: Practice mock interviews regularly.

Application process
Where: Campus
Eligibility: 6 CGPA, (Salary package: 9.5 LPA)
Resume Tip
Resume tip

Tip 1: Having an internship is a must to gain practical experience.
Tip 2: Keep an achievements section to highlight your key accomplishments.

Interview rounds

01
Round
Hard
Online Coding Test
Duration180 minutes
Interview date13 Jul 2025
Coding problem3

The test was held online on the Infosys Wingspan Portal.
The OA had 3 questions, categorized as Easy, Medium, and Hard.
The camera was on throughout.

1. Chocolates

Moderate
20m average time
50% success
0/80
Asked in companies
UberCodenation

You have 'N' chocolates and 'K' empty bags. Your task is to pack all the chocolates in these bags such that any bag can have any number of chocolates, but no bag remains empty. Please note that all the chocolates are different, i.e., they can be numbered from 1 to 'N', but all bags are identical.

E.g., If there are 3 chocolates and 2 bags, then you can pack the chocolates in the following three ways -

[1, 2] and [3].
[2, 3] and [1].
[1, 3] and [2].

Only the above three packings are considered valid. Some more packages are possible; for example, packing [{2}, {3, 1}] is not taken because [{1, 3}, {2}] is already considered, i.e., order of bags and the order of chocolates inside a bag don't matter.

You are given the number of chocolates 'N' and the number of bags 'K'. Find the number of ways to pack the chocolates. Return your answer modulo 10^9+7.

Problem approach

I kept track of the range where the special parcel could be after each move.
Based on each operation, I updated this range and counted how many positions were possible.

Try solving now

2. Beautiful Array

Hard
50m average time
60% success
0/120
Asked in companies
DirectiFlockGoogle inc

You are given two integers ‘M’ and ‘N’. Your task is to find the number of a unique beautiful array of length ‘M’.

The array of length ‘M’ is said to be beautiful if -

The array consists of elements from 1 to ‘N’.

The array contains at least one ‘N’ length strictly increasing subsequence.

Note:

A subsequence of an array is an ordered subset of the array's elements having the same sequential ordering as the original array. For example, the subsequences of the array  [1, 2, 3] are [1], [2], [3], [1, 2], [1, 3], [2, 3] and [1, 2, 3] where  [2, 1], [3,2, 1] are not subsequence of array [1, 2, 3]

The longest increasing subsequence of an array of numbers is the longest possible subsequence that can be created from its elements such that all elements are in strictly increasing order.

For example:

For M = 3 and N = 2
array : [ 1, 1, 2 ] [ 1, 2, 1 ] [ 1, 2, 2 ] [ 2, 1, 2 ] are beautiful.

array:  [ 1, 1, 1 ] [ 2, 1, 1 ] [ 2, 2, 1 ] [ 2, 2, 2 ] are not beautiful. 
Problem approach

I tried checking all pairs and counting divisors for each number.
It worked for small cases but was too slow for larger inputs.

Try solving now

3. Maximum Distance

Moderate
15m average time
80% success
0/80
Asked in companies
MakeMyTripOracleGoogle inc

You have been given an array 'A' of N integers. You need to find the maximum value of j - i subjected to the constraint of A[i] <= A[j], where ‘i’ and ‘j’ are the indices of the array.

For example :
If 'A' = {3, 5, 4, 1}

then the output will be 2.
Maximum value occurs for the pair (3, 4)
Problem approach

I used the Manhattan distance idea and tried to count all valid points.
I wasn’t able to fully optimize it for all dimensions, so some test cases failed.

Try solving now
02
Round
Hard
Face to Face
Duration120 minutes
Interview date3 Sep 2025
Coding problem2

The round consisted of pure DSA and core CSE fundamentals.
The onsite round was divided into two mini rounds:

  1. Two DSA questions on the Infosys Wingspan Portal to be solved live in front of the interviewer within 90 minutes. The minimum cut-off was to solve at least one of the questions.
  2. Interview questions on paper and pen asked by the interviewer after the test.

After the 90-minute test was over, the interview started and included questions on topics like bipartite graphs, linked lists, string compression, BFS traversal, SQL window functions, and lambda expressions in Java.

Since I couldn’t solve the two DSA questions, which were very important, I was rejected.

1. Count Subarrays

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

You are given an array/list consisting of 0 and 1 only. Your task is to find the sum of the number of subarrays that contains only 1 and the number of subarrays that contains only 0.

An array 'C' is a subarray of array 'D' if 'C' can be obtained from 'D' by deletion of several elements from the beginning and several elements from the end. Example :

Let 'ARR' = [1,0,0] then the possible subarrays of 'ARR' will be: {1}, {0}, {0}, {1,0}, {0,0}, {1,0,0}.
Example
If the given array 'ARR' = [1,0,0,0,1,1,0,1]
Then the number of 1’s subarrays will be 5. [{1},{1},{1},{1,1},{1}]
And the number of 0’s subarrays will be 7. [{0},{0},{0},{0,0},{0,0},{0,0,0},{0}]
So our answer will be 5 + 7 = 12.
Problem approach

I understood the problem but wasn’t able to fully solve it within the time limit.

Try solving now

2. Circular Jump Game

Hard
0/120

A group of N people are seated in chairs numbered 1 to N arranged in a circle. You are given an array A, where A[i-1] represents the jump distance for the person on chair i.


From any chair i, a person can jump A[i-1] chairs in either a clockwise (right) or counter-clockwise (left) direction.


Bob starts at chair X and needs to reach chair Y. Your task is to find the minimum number of jumps required to get from chair X to chair Y. If it's impossible to reach chair Y, return -1.


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

Which data structure is used to implement a DFS?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
5027 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3720 views
0 comments
0 upvotes
Software Developer Intern
3 rounds | 5 problems
Interviewed by Infosys India Pvt. Ltd
51 views
0 comments
0 upvotes
System Engineer
2 rounds | 3 problems
Interviewed by Infosys India Pvt. Ltd
4 views
0 comments
0 upvotes