Infosys Pvt Limited interview experience Real time questions & tips from candidates to crack your interview

Specialist Programmer

Infosys Pvt Limited
upvote
share-icon
2 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I completed my B.Tech from Jaypee Institute of Information Technology in 2025. Currently, I am working at Accenture. I started my journey in DSA and web development during my second year of college. In my fourth year, I received several offers in the range of 3–5 LPA. In December 2025, I applied to this company through an off-campus drive. Since Infosys SP DSE roles are primarily focused on DSA, I was really excited.
Application story
I had just finished the training phase at Accenture. Infosys had released forms for the SP DSE hiring for the off-campus 2025 batch. I applied through the form, and since it was my second time attempting this drive, I was ready to give my best.
Why selected/rejected for the role?
I was clear with my fundamentals. This was my second attempt for this role. SQL, internship experience, and DSA are key.
Preparation
Duration: 4 Months
Topics: Dynamic Programming, Binary Search on Answers, Graphs, Trees, Heaps
Tip
Tip

Tip 1: Data structures are 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: 6.25LPA+ 75K Bonus)
Resume Tip
Resume tip

Tip 1: An internship is a must.

Tip 2: Include an achievements section.

Interview rounds

01
Round
Hard
Online Coding Test
Duration180 minutes
Interview date14 Dec 2025
Coding problem4

Infosys recently changed its pattern.

There were 4 questions labeled as Easy, Medium, Hard, and Complex. Each had 12 test cases that needed to be passed. The exam was conducted offline in NCR at Galgotias College of Engineering and Technology.

I was able to solve 2 questions—the Easy and Medium ones.

The Easy one was not actually easy; it was a hard-level problem, which I have mentioned below.
The Medium one was a constructive algorithm question; if you have done competitive programming, only then can you solve such questions.
The Hard one was based on partition DP.
The Complex one was based on DP on graphs.

1. Largest Subarray Sum Minimized

Hard
30m average time
80% success
0/120

Given an integer array ‘A’ of size ‘N’ and an integer ‘K'.


Split the array ‘A’ into ‘K’ non-empty subarrays such that the largest sum of any subarray is minimized.


Your task is to return the minimized largest sum of the split.


A subarray is a contiguous part of the array.


Example:
Input: ‘N’ = 5, ‘A’ = [1, 2, 3, 4, 5], ‘K’ = 3

Output: 6

Explanation: There are many ways to split the array ‘A’ into K consecutive subarrays. The best way to do this is to split the array ‘A’ into [1, 2, 3], [4], and [5], where the largest sum among the three subarrays is only 6.


Problem approach

I applied Binary Search on Answers. The hint is that binary search on the answer is used when we see keywords like “minimize the maximum” or “maximize the minimum.”

It is a famous hard-coding problem, and it appeared as an easy question in the Infosys exam.

Try solving now

2. Minimum Number of Deletions and Insertions

Moderate
0/80
Asked in companies
MicrosoftPhonePeCoding Ninjas

You are given 2 non-empty strings 's1' and 's2' consisting of lowercase English alphabets only.


In one operation you can do either of the following on 's1':

(1) Remove a character from any position in 's1'.

(2) Add a character to any position in 's1'.


Find the minimum number of operations required to convert string 's1' into 's2'.


Example:
Input: 's1' = "abcd", 's2' = "anc"

Output: 3

Explanation:
Here, 's1' = "abcd", 's2' = "anc".
In one operation remove 's1[3]', after this operation 's1' becomes "abc".    
In the second operation remove 's1[1]', after this operation 's1' becomes "ac".
In the third operation add 'n' in 's1[1]', after this operation 's1' becomes "anc".

Hence, the minimum operations required will be 3. It can be shown that there's no way to convert s1 into s2 in less than 3 moves.


Problem approach

I solved this using a greedy approach. I started from the left side of the string, since making earlier characters smaller helps in obtaining a lexicographically smaller result.

At each position, I checked whether flipping the character would make it smaller. If the character was in the second half of the alphabet (closer to 'z'), I flipped it so that it became closer to 'a'.

I used the allowed operations one by one and applied them in a way that improved the string from left to right, without exceeding the given number of operations, k.

Try solving now

3. Maximize Partition Value

Moderate
0/80

You are given an array of n integers and an integer k. Your task is to divide the array into exactly k non-empty, contiguous subarrays (or "parts").


For each subarray, you must calculate its "value". The value of a subarray is defined as:

(sum of its elements) - (its minimum element) + (its maximum element)


The goal is to find a partitioning of the original array into k parts such that the sum of the values of all k parts is maximized.

Return this maximum possible total value.

Problem approach

I could not solve this, but it seemed like a Partition DP problem.

Try solving now

4. Maximum Value Path in a Graph

Moderate
0/80

You are given a directed graph with N nodes (numbered 0 to N-1), where each node has an integer value. You are also given an integer k.


You can start your journey at any node in the graph. From your current node, you can move to any of its neighbors by following a directed edge. Each move takes one step. You are allowed to perform at most k moves.


Each time you visit a node (including your starting node), you collect its value. You are allowed to visit the same node multiple times, and its value is added to your total each time you visit.


Your task is to find the maximum possible total value you can accumulate after a path of at most k moves.


Problem approach

I could not solve it.
The question was on the topic of DP on graphs.

Try solving now
02
Round
Easy
Face to Face
Duration20 minutes
Interview date15 Dec 2025
Coding problem2

The interview round email was sent on the same day as the test.

I was shortlisted for the interview for the Digital Specialist Engineer role.

The interviewer asked about my internship and what I did during the gap between June and December, so I told him that I was undergoing training at Accenture.

It is important to mention that you are employed so that the interviewer perceives you as employable. Speaking from experience, I had faced a similar situation in another interview.

I explained my internship by showing the schema and the problem statement. Most of the discussion revolved around how I utilized the June to December gap.

1. 7th Highest Salary

7th Highest Salary

Problem approach

Tip 1: Practice SQL using ChatGPT.

Tip 2: If possible, always provide two solutions in SQL.

Tip 3: I explained two approaches—one using LIMIT and the other using subqueries.

2. Extract Digits from String

Easy
0/40

You are given a string S which may contain a mix of uppercase letters, lowercase letters, digits, symbols, and spaces.


Your task is to create a new string that consists of only the digit characters ('0' through '9') from the original string S. The digits in the new string must appear in the same relative order as they did in the original string.


If no digits are present in the input string, your function should return an empty string.


Problem approach

An easy ASCII code question that even a beginner can solve.

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 - Intern
2 rounds | 3 problems
Interviewed by Amazon
1077 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6697 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3720 views
0 comments
0 upvotes