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

Software Engineer

Infosys
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I started my preparation by building a strong foundation in programming and core computer science subjects like Data Structures and Algorithms. I regularly practiced coding problems and improved my problem-solving skills over time. Along with technical preparation, I also worked on improving my communication and interview skills. Applying to Infosys was a valuable experience for me. Although I was not selected, the process helped me identify my weak areas, especially in technical concepts and confidence during interviews. I am continuously working on these areas and staying consistent with my preparation to perform better in future opportunities.
Application story
I applied through off-campus opportunities. After registering, I received an email for the online assessment. I cleared the assessment and was shortlisted for the interview round. The interview was conducted virtually, where both technical and HR questions were asked. The overall process was smooth and well-organized.
Why selected/rejected for the role?
I think I was rejected due to a lack of depth in the DSA round and not being able to explain my projects confidently.
Preparation
Duration: 3 Months
Topics: Data Structures, Algorithms, OOPs, DBMS, Operating Systems, Computer Networks, SQL, Basic System Design
Tip
Tip

Tip 1: Practice DSA problems daily and focus on understanding concepts rather than memorizing solutions.

Tip 2: Revise core subjects like OOPs, DBMS, and OS regularly before interviews.

Tip 3: Take mock interviews to improve confidence and communication skills.

Application process
Where: Linkedin
Eligibility: Minimum 7 CGPA, no active backlogs, and basic knowledge of programming and computer science fundamentals. Having at least 1–2 projects on the resume is preferred. (Salary Package: 9 LPA)
Resume Tip
Resume tip

Tip 1: Include 2–3 strong projects with a clear explanation of your role and the technologies used.

Tip 2: Keep your resume concise (1 page) and avoid adding false or unnecessary information.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date8 Feb 2026
Coding problem3

The first round was an online assessment conducted on the Infosys Wingspan platform. It consisted of MCQ questions and coding problems. The MCQs covered aptitude, logical reasoning, and basic computer science concepts like DBMS, OOPs, and OS. The coding section included 2–3 questions based on basic data structures and problem-solving skills. The overall difficulty level ranged from easy to hard, and the questions were manageable within the given time.

1. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
AdobeOracleSAP Labs

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

Step 1: I initialized two variables, first and second, to track the largest and second-largest elements.

Step 2: I iterated through the array and updated the first variable whenever a larger element was found.

Step 3: If the current element was smaller than first but greater than second, and not equal to first, I updated second.

Step 4: After completing the iteration, the second variable contained the second-largest element.

Try solving now

2. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
CIS - Cyber InfrastructureIntuitSamsung

You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols and whitespaces.

Note :

String 'S' is NOT case sensitive.

Example :

Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Problem approach

Step 1: I took the input string, removed all spaces, and converted it to lowercase to ensure uniform comparison.
Step 2: I initialized two pointers: one at the beginning (left) and one at the end (right).
Step 3: I compared the characters at both pointers. If they were not equal, I concluded that the string is not a palindrome.
Step 4: If they matched, I moved the left pointer forward and the right pointer backward.
Step 5: I continued this process until the pointers crossed each other. If all characters matched, the string is a palindrome.

Try solving now

3. Longest Increasing Subsequence

Moderate
30m average time
65% success
0/80
Asked in companies
PhonePeChegg Inc.Barclays

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order.

Strictly Increasing Sequence is when each term in the sequence is larger than the preceding term.

For example:
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Problem approach

Step 1: I understood that the problem is to find the length of the longest increasing subsequence in the array.
Step 2: I used Dynamic Programming and created a DP array where each element represents the LIS ending at that index.
Step 3: I initialized all values of the DP array to 1 since each element itself is a subsequence of length 1.
Step 4: I used two loops, for each element I checked all previous elements. If the current element is greater, I updated DP[i] = max(DP[i], DP[j] + 1).
Step 5: After filling the DP array, I took the maximum value from it as the final answer.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date27 Feb 2026
Coding problem2

The technical interview started with my introduction, followed by questions based on my resume. I was asked to explain my projects in detail, including the technologies used and my contributions.

The interviewer then asked questions from core subjects like OOPs, DBMS, and basic programming concepts. I was also given a few coding and logical questions to test my problem-solving skills.

Overall, the questions were focused on fundamental concepts and practical understanding. The interviewer was supportive, and the discussion was interactive.

1. Concatenated Words

Hard
0/120
Asked in companies
IntuitIntuitQualcomm

Ninja has given a list of unique words 'WORDS' of size 'N' and he wants to find all the words in the list formed after concatenating two or more words in the same list.

As Ninja's best friend, he asked you to help him with the above problem. So, your task is to find all words in the list which are formed after concatenating two or more words in the same list.

Note: One word can be concatenated multiple times. It is guaranteed that there is at least one word in the list, which is formed after concatenating two or more words.

Example:
Input: 'WORDS' = ["ninjas", "coding", "codingninjas"]
Output: ["codingninjas"]

Only word "codingninjas' is formed after concatenating two or more words in the list i.e "coding" and "ninjas".
Problem approach

Step 1: I stored the frequency of all words in a hashmap to track how many times each word should appear.
Step 2: I calculated the length of each word and the total length of the concatenated words.
Step 3: I iterated through the string and, for each possible starting index, extracted substrings of word length.
Step 4: I used another hashmap to track seen words and their counts while traversing.
Step 5: If a word was not present in the original map or exceeded the expected frequency, I broke the loop.
Step 6: If all words matched exactly, I added the starting index to the result.

Try solving now

2. Zig-Zag String

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

You are given a string ‘STR’ of size ‘N’ and an integer ‘M’ (the number of rows in the zig-zag pattern of ‘STR’). Your task is to return the string formed by concatenating all ‘M’ rows when string ‘STR’ is written in a row-wise zig-zag pattern.

Example:
N = 12, M = 3 and STR = ‘CODINGNINJAS’

example

There are three rows (‘M = 3’) in the zig-zag pattern. Row one contains ‘CNN’, row two contains ‘OIGIJS’, and row three contains ‘DNA’. After concatenating the three rows, we get the string ‘CNNOIGIJSDNA’. So, the answer is ‘CNNOIGIJSDNA’.
Note:
1. The string ‘STR’ consists of capital letters only (i.e., characters from ‘A-Z’).
Problem approach

Step 1: I handled the edge case where the number of rows is 1 or greater than the string length, in which case the original string is returned.
Step 2: I created a list of string builders equal to the number of rows to store characters row-wise.
Step 3: I initialized a variable to track the current row and a direction flag to move up or down.
Step 4: I iterated through each character of the string and appended it to the current row.
Step 5: When I reached the top or bottom row, I reversed the direction.
Step 6: After processing all characters, I combined all rows to form the final result string.

Try solving now
03
Round
Hard
Face to Face
Duration90 minutes
Interview date20 Mar 2026
Coding problem2

The third round included both technical and HR questions. I was asked to introduce myself and explain my projects. Questions from OOPs, DBMS, and programming were asked, along with some logical problems.

In the HR part, I was asked about my strengths, weaknesses, and career goals. The interview was smooth and interactive.

1. Sudoku Solver

Hard
25m average time
75% success
0/120
Asked in companies
CoinbaseOlaMicrosoft

You have been given a 9x9 2d integer matrix 'MAT' representing a Sudoku puzzle. The empty cells of the Sudoku are filled with zeros, and the rest of the cells are filled with integers from 1 to 9. Your task is to fill all the empty cells such that the final matrix represents a Sudoku solution.

Note:
A Sudoku solution must satisfy all the following conditions-
1. Each of the digits 1-9 must occur exactly once in each row.
2. Each of the digits 1-9 must occur exactly once in each column.
3. Each of the digits 1-9 must occur exactly once in each of the 9, 3x3 sub-grids of the grid.

You can also assume that there will be only one sudoku solution for the given matrix.
Problem approach

Step 1: I used a backtracking approach to try filling empty cells one by one.
Step 2: I traversed the board to find an empty cell.
Step 3: For each empty cell, I tried placing digits from 1 to 9.
Step 4: Before placing a number, I checked if it is valid in the current row, column, and 3x3 sub-grid.
Step 5: If valid, I placed the number and moved to the next empty cell recursively.
Step 6: If no number worked, I backtracked by resetting the cell to empty and tried other options.
Step 7: This process continued until the board was completely filled correctly.

Try solving now

2. Count And Say

Moderate
15m average time
85% success
0/80
Asked in companies
FacebookAppleExpedia Group

Write as you speak is a special sequence of strings that starts with string “1” and after one iteration you rewrite the sequence as whatever you speak.

Example :
The first few iterations of the sequence are :
First iteration: “1”
    As we are starting with one.

Second iteration: “11”
    We speak “1” as   “one 1” then we write it as “11”

Third iteration: “21”
    We speak “11” as “Two 1” then we write it as “21”

Fourth iteration: “1211”
    We speak “21” as “one 2, one 1”  then we write it as “1211”

Fifth iteration: “111221”
    We speak “1211” as “one 1, one 2, two 1” then we write it as “111221”

Sixth iteration: “312211”
    We speak “111221” as “three 1, two 2, one 1” then we write it as “312211”

You will be given a single positive integer N, Your task is to write the sequence after N iterations.

Problem approach

Step 1: I started with the base case where the first term is "1".
Step 2: For each next term, I read the previous string and counted consecutive repeating characters.
Step 3: I built a new string by appending the count followed by the character.
Step 4: I repeated this process until I reached the nth term.

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

What does the SQL function NOW() return?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
9566 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3744 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2963 views
0 comments
0 upvotes
Software Engineer
3 rounds | 3 problems
Interviewed by Infosys
11 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
8089 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
10394 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4595 views
1 comments
0 upvotes