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

Programmer Analyst Trainee

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

Interview preparation journey

expand-icon
Journey
Hello, guys. My name is Akash Deep Vishwakarma. I completed my Btech in Computer Science and Engineering from Tier 3 college in my city. In my first year, I didn't know about coding. When I was in my second year, I learned about Java, which is widely used in the IT sector in almost all companies, and we can do both competitive programming and Android development through Java. That's why I started to learn Java in my second year during the lockdown. I studied all the things from YouTube and books. During my second year and third, I completed core Java and built some projects. In the third year, I started practicing DSA and CP through Java only and made some Android apps using Java. In my third year, I got the opportunity to attempt HackWithInfy, organized by Infosys to hire freshers for three roles - System Engineer (3.5 lakh), Digital System Engineer (6.25 lakh), and Specialist Programmer (9.5 lakh). I cracked the coding round and interview and got the opportunity to work with Infosys as an Intern and full-time employee as a Specialist.
Application story
In my third year, I got the news that Infosys is going to hire freshers through the HackWithInfy program. This program is run by Infosys every year to select the freshers for three different roles - System Engineer (3.5 LPA), Digital System Engineer (6.25 LPA), and Specialist Programmer (9.5 LPA). I applied through the official website of Infosys. There were two rounds. Both rounds were coding rounds; after clearing both rounds, we will get the interview calls. If you solve 2+ out of 3 questions in the second round, you will get the role of Specialist programmer. If you solve 1.5+ and less than 2, then you will get the role of Digital Specialist programmer, and if you solve only one and less than 1.5, then you'll be called for a system engineer role. I solved 2.25 questions and got the interview call for the Specialist programmer role. After clearing the interview, I got the Offer letter for full-time.
Why selected/rejected for the role?
Generally, Infosys conducts interviews for 45 minutes only, but mine was 90 minutes because I added three full-stack projects, all based on Java and Android. I already knew that Infosys works with Java 70%. That's why the interviewer asked me questions regarding core Java, Android, Coding problems, Core subjects, and some behavioral questions. So, this increased my candidature for the role.
Preparation
Duration: 5 months
Topics: DP, Greedy, String, Recursion, Graph, Tree, DBMS, OS, SQL, Core Java
Tip
Tip

Tip 1: Choose one Object Oriented Language, either Java or C++, and stick to it. Practice DSA through that particular language and do code studio also.
Tip 2: Practice core subjects like DBMS, SQL, OS, etc.
Tip 3: Try participating in Competitive Programming contests.
Tip 4: Please do Development and build at least three projects.

Application process
Where: Company Website
Eligibility: No backlogs
Resume Tip
Resume tip

Tip 1: At least two full stack projects
Tip 2: Use ATS friendly resume and try to introduce yourself well in the resume.
 

Interview rounds

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

Timing: 9AM to 10:30 AM
Mode: Online from Home only
Platform: Infosys's own platform (don't know name)
Difficulty: Medium

1. Rotate array

Easy
25m average time
80% success
0/40
Asked in companies
Dell TechnologiesThalesMicrosoft

Given an array 'arr' with 'n' elements, the task is to rotate the array to the left by 'k' steps, where 'k' is non-negative.


Example:
'arr '= [1,2,3,4,5]
'k' = 1  rotated array = [2,3,4,5,1]
'k' = 2  rotated array = [3,4,5,1,2]
'k' = 3  rotated array = [4,5,1,2,3] and so on.
Problem approach

Step 1: First I store the elements from index d to N-1 into the temp array.
Step 2: Then store the first d elements of the original array into the temp array.
Step 3: Copy back the elements of the temp array into the original array

Try solving now

2. Max Frequency

Easy
10m average time
95% success
0/40
Asked in companies
IntuitDunzoChegg Inc.

Let’s define the beauty of an array to be equal to the value present in the array, which is having the maximum frequency. If there are multiple such values, then the smallest among such values will be selected.

Alice gave Bob an array ‘A’ of size ‘N’ and asked him to find the beauty of the frequencies of the values present in the array. In simple words, Bob first needs to find the frequencies of all values present in the array, then find the beauty of this frequency array.

Help Bob in finding the beauty of the frequencies of the values present in the array.

Problem approach

Step 1: Created array of 26 
Step 2: Store frequency using Array[character - 'a'] formula
Step 3: Just printed the array

Try solving now
02
Round
Hard
Online Coding Interview
Duration180. mins
Interview date26 Apr 2022
Coding problem3

Timing: 12 PM - 3 PM
Difficulty: Hard
Environment: Online
Questions Asked: mostly on DP, Greedy and String

1. Longest Common Prefix

Moderate
40m average time
60% success
0/80
Asked in companies
AdobeGrofersDunzo

You are given an array ‘ARR’ consisting of ‘N’ strings. Your task is to find the longest common prefix among all these strings. If there is no common prefix, you have to return an empty string.

A prefix of a string can be defined as a substring obtained after removing some or all characters from the end of the string.

For Example:
Consider ARR = [“coding”, ”codezen”, ”codingninja”, ”coders”]
The longest common prefix among all the given strings is “cod” as it is present as a prefix in all strings. Hence, the answer is “cod”.
Problem approach

Step 1: These types of questions can be solved using recursion.
Step 2: Tried to break the problem in to the smaller problems 
Step 3: Wrote base case for the smaller problem

Try solving now

2. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
AmazonFacebookMathworks

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Problem approach

Step 1: Created 3 variables for 0, 1 and 2.
Step 2: Count frequency of al three and store in those variables
Step 3: using while loop printed the 0, 1 and 2

Try solving now

3. Longest Common Subsequence

Moderate
0/80
Asked in companies
AmazonVisaRed Hat

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’ can be obtained from ‘b’ by deletion of several (possibly, zero or all) characters. A common subsequence of two Strings is a subsequence that is common to both Strings.

Problem approach

Step 1: Its a DP problem, known as LCS
Step 2: tried to substitute the problem in to smaller problem
Step 3: built base case 
Step 4: Then solved it using DP

Try solving now
03
Round
Medium
Face to Face
Duration90 mins
Interview date18 Jun 2022
Coding problem3

TIming: 1 PM to 1:45 PM was scheduled but mine went till 2:30 PM
Difficulty: Medium 
Mode: Online

1. 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.
Problem approach

This problem is very similar to the Unbounded Knapsack Problem, where there are multiple occurrences of the same item. Here the pieces of the rod. Now I will create an analogy between Unbounded Knapsack and the Rod Cutting Problem.

Try solving now

2. DBMS Questions

1. Asked questions on SQL queries
2. Types of database

Problem approach

Tip 1: Read core subjects

3. OS Questions

1. What is deadlock?(Learn)

Problem approach

Tip 1: Read OS related materials.

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
System Engineer Specialist
2 rounds | 4 problems
Interviewed by Infosys private limited
1453 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Infosys private limited
1224 views
0 comments
0 upvotes
Software Engineer
3 rounds | 3 problems
Interviewed by Infosys private limited
1174 views
0 comments
0 upvotes
Digital Specialist Engineer
3 rounds | 4 problems
Interviewed by Infosys private limited
875 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Programmer Analyst Trainee
3 rounds | 2 problems
Interviewed by Cognizant
1450 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
2 rounds | 3 problems
Interviewed by Cognizant
1409 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 1 problems
Interviewed by Cognizant
1312 views
0 comments
0 upvotes