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

SSE

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

Interview preparation journey

expand-icon
Journey
During my B.tech I took Electrical Engineering. In my First Year I started my coding journey with C language and start loving it. In my second year, I started learning basic DSA as it was in my course curriculum. Then one of my teacher told me to start solving problems on hackerrank , then I started solving problems on that platform, in this time I met one of my senior from CSE and he told me to practice problems from codechef , after solving 1 month I decided to give contests on codechef and codeforces. Till now I was in C language, Starting my 5th semester I start learning C++ language with DSA. And start solving on various Platforms such as. Leetcode ,CodeStudio ,GFG .Then in my sixth semester, I studied core subjects like DBMS and OOPS in depth. In this manner, I was well prepared before the placement season.
Application story
I applied for the HackWithInfy round in January where we are given a chance to choose a slot of our choice. There were 6 slots available, so I chose the second day slot on Mar 7, 2022 Morning. There are 3 questions in the test with each of them 12 test cases which I have to solve in 180 minutes. The level of the questions are medium to hard . I was able to solve 1.5 questions . On April 18 I got a mail that I got selected for pre-placement interview and they told me to share my resume and choose Interview date , so they can assign interview on that day .
Why selected/rejected for the role?
I was selected because I was able to answer all coding questions properly. Actually, I worked a lot on my coding skill . Moreover, I had a deep understanding of my project as well. I practiced majority of the the Infosys interview asked questions before interview.
Preparation
Duration: 8 months
Topics: C, C++ Programming Language , DSA , OOPS , Java , DBMS
Tip
Tip

Tip 1 : Make sound knowledge in one specific programming Language(C++ / Java / Python) and learn DSA on that specific language.
Tip 2 : Make a Resume with good Projects.
Tip 3 : Solve Different types of Problems as much as possible (Leetcode / Codestudio / GFG).

Application process
Where: Other
Eligibility: B.E./ B. Tech/ M.E./ M. Tech
Resume Tip
Resume tip

Tip 1 : Have some deployed projects on resume (Dev / ML).
Tip 2: Add some of your best coding profile on resume.

Interview rounds

01
Round
Hard
Online Coding Test
Duration180 minutes
Interview date7 Mar 2022
Coding problem2

1. String Conversion

Moderate
15m average time
85% success
0/80
Asked in companies
IBMDell TechnologiesDelhivery

You have given two strings 'A' and ‘B’ of length ‘N’ each which only consists of lowercase English letters. You have also given an integer ‘K’.

Your task is to determine if it is possible to convert string ‘A’ into ‘B’ after performing two types of operations on it:

1. Choose an index i (1 <= i <= N - 1) and swap A[i] and A[i+1].
2. Choose an index i (1 <= i <= N - K + 1) and if A[i], A[i+1],. . . . , A[i+K-1] all are equal to some character x (x != ‘z’), then you can replace each one with the next character (x + 1) , i.e. ‘a’ is replaced by ‘b’, ‘b’ is replaced by ‘c’ and so on.

Note:

You are allowed to perform any operation any number of times(possibly zero) only on string 'A'.
For example-
If the given strings are A = ‘xbbx’ and B = ‘xddx’ and K is given as 2. Then it is possible to convert string A into B by applying the second operation two times on index 2 (1 based indexing).
Try solving now

2. Largest Square

Moderate
20m average time
80% success
0/80
Asked in companies
HCL TechnologiesZSDeutsche Bank

You are given a binary grid containing only 0s and 1s. You are also given an integer, ‘K’ and you are asked ‘Q’ queries. In each query, you are given the location of a cell. For each query, you need to find the largest square containing at most ‘K’ 1s and having its center as the cell given in the query.

Try solving now
02
Round
Easy
Video Call
Duration40 minutes
Interview date13 May 2022
Coding problem4

This was in the morning 10.20 AM

1. Ninja and Employees

Easy
20m average time
70% success
0/40
Asked in companies
CiscoBlue Yonder

Ninja is managing a company of Employees. There are N employees in the company and their unique IDs are labeled from 0 to N-1. All the employees are arranged in a tree-like structure according to their rank. Each employee has been assigned some importance point. Given an integer X , Ninja wants to know the total of importance points of Employee having ID as ‘X’ and all its subordinates.Can you help Ninja to find the total importance points quickly?

You are given a tree having ‘N’ nodes and ‘N’-1 edges. And an array ‘POINTS’ where POINTS[i] denotes the importance points of employee with ID as i and an integer ‘X’ is given. Print the sum of importance points of employee ‘X’ and all its subordinates.

For Example
If the given tree:
And POINTS = [3,5,1,4] and X = 2

altImage

The answer will be 5 (Points of 2 + Points of 3).

Problem approach

Here I told that I will use unordered_map key as employee Id and value as no of times applied.
After iterating the whole table, I got which ids has value greater than 1 those ids applied for more than one time for bonuses.

Try solving now

2. N-th Fibonacci Number

Moderate
40m average time
70% success
0/80
Asked in companies
HCL TechnologiesCiscoNatwest Group

You are given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.

Since the answer can be very large, return the answer modulo 10^9 +7.

Fibonacci number is calculated using the following formula:
F(n) = F(n-1) + F(n-2), 
Where, F(1) = F(2) = 1.
For Example:
For ‘N’ = 5, the output will be 5.
Try solving now

3. Maximum Number

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

You are given an array of N elements. This array represents the digits of a number. In an operation, you can swap the value at any two indices. Your task is to find the maximum number by using operation at most once.

For Example :

Input array [1,3,2,7] so basically this array represents the number 1327.
All the possible combinations are :
1. [3 1 2 7] get by swapping indices 1 and 2.
2. [2 3 1 7] get by swapping indices 1 and 3.
3. [7 3 2 1] get by swapping indices 1 and 4.
4. [1 2 3 7] get by swapping indices  2 and 3.
5. [1 7 2 3] get by swapping indices 2 and 4.
6. [1 3 7 2] get by swapping indices 3 and 4.
Out of all the possible combinations, 3 give the maximum number as 7321, so we will return [7 3 2 1].

Note :

The input may have 0 before the most significant digit. e.g. [0,3,5,7] is a valid input and this represents number 357.
Try solving now

4. Theory Questions

What is the difference between Two-tier and Three-tier Database Architecture?
Tell me some DDL commands?
At last he discussed about my projects

Problem approach

Tip 1 : Do practice for SQL queries.
Tip 2 : Read DBMS thoroughly.

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