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

System Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 4 Months
Topics: Data Structures, Algorithms, System Design, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 Minutes
Interview date29 Nov 2021
Coding problem2

This was an online MCQ + coding round where we had 1 hour to solve the MCQ's and another 1 hour to solve 2 coding questions. The MCQ's were related to both General and Technical Aptitude and the coding questions were relatively easy if one has a decent grip on Data Structures and Algorithms.

1. Merge Sort Linked List

Moderate
10m average time
90% success
0/80
Asked in companies
MeeshoNatwest GroupWalmart

You are given a Singly Linked List of integers. Sort the Linked List using merge sort.

Merge Sort is a Divide and Conquer algorithm. It divides the input into two halves, calls itself for the two halves, and then merges the two sorted halves. The merge() function is used for merging two halves. The merge(arr, L, M, R) is a key process that assumes that arr[L..M] and arr[M + 1...R] are sorted and merges the two sorted subarrays into one.

Problem approach

Approach : 

1) Get the middle node and split the list into two halves. We can use a two-pointer technique to get the middle node by running a slow and a fast pointer.

2) The idea here is to move both the slow and fast pointer simultaneously until fast reaches the end of the list.

3) Here, for every single step slow takes, fast will make a jump twice of the slow pointer.

4) When the fast pointer reaches the end of the list, the slow pointer will reach the middle of the list.

5) Now you can split into two two lists, by taking slow's next or slow as the head of second list.

6) Make sure to make the tail of first list null.

7) We can now ask the sort function to sort the left and right halves of the list.

8) We can assume the lists are now sorted, we now can use the merge two sorted list technique to merge the lists to eventually make the final sorted list and return the new head pointing to the list.

TC : O(N * logN), where N = number of nodes in the linked list
SC : O(log(N))

Try solving now

2. Maximum Subarray Sum

Moderate
0/80
Asked in companies
SAP LabsThought WorksAcko

You are given an array/list ARR consisting of N integers. Your task is to find the maximum possible sum of a non-empty subarray(contagious) of this array.

Note: An array C is a subarray of array D if it can be obtained by deletion of several elements(possibly zero) from the beginning and the end of array D.

For e.g.- All the non-empty subarrays of array [1,2,3] are [1], [2], [3], [1,2], [2,3], [1,2,3].

Problem approach

Approach (Using Kadane's Algo) :

1) Declare a variable ‘maxSum’ and initialize it with ‘minimum integer’

2) Declare a variable ‘localSum’ and initialize it with ‘0’

3) Declare 3 counter variables as ‘start’ , ‘end’ , ‘newStart’ as 0, 0, 0

4) Run a loop from i = 0 to N
4.1) Add a current element to ‘localSum’

4.2) If 'localSum' is greater than 'maxSum'
Update ‘maxSum’ with 'localSum', update start with ‘newStart’ and end with loop counter ‘i’

4.3) If 'localSum' is equal to ‘maxSum’ and the difference between ‘end’ and ‘start’ is less than the
difference between ‘newStart’ and ‘i’
Update start with ‘newStart’ and end with ‘i’

4.4) If 'localSum' is below ‘0’
Update ‘localSum’ as 0 and set ‘newStart' as ‘i’ + 1

5) Return the part of the array starting from ‘start’ and ending at ‘end’


TC : O(N), where N=size of the array
SC : O(N), we need a final array to store the result maximum subarray.

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date29 Nov 2021
Coding problem7

This round had questions revolving mainly around OOPS and DBMS. The interviewer also asked me 1 coding problem related to DFS in which I first had to explain my approach with proper complexity analysis and then code the solution in any preferred IDE. Overall, the experience was quite good and this round went well.

1. Number of Islands

Easy
0/40
Asked in companies
PhonePeExpedia GroupRazorpay

You have been given a non-empty grid consisting of only 0s and 1s. You have to find the number of islands in the given grid.

An island is a group of 1s (representing land) connected horizontally, vertically or diagonally. You can assume that all four edges of the grid are surrounded by 0s (representing water).

Problem approach

Approach : This was a very standard questions related to DFS and I had already practiced it on platforms like LeetCode and CodeStudio therefore I coded the solution preety fast at the interview.

Algorithm : 

1) We have a function ‘numberOfIsland’ in which we are iterating over the whole grid.

2) We will initialise ‘islands’ to 0 to count the number of islands. Whenever we encounter a 1(land), we will call ‘dfs’ and increment ‘islands’ by 1. 

3) The ‘dfs’ function works as follows:
3.1) If indices are out of bound or the value present at the current cell is 0, then simply return 0.

3.2) Else, Mark the cell as 0, so that we don’t count cells in an island more than once and call the ‘dfs’ function in 8-directions.


TC : O(N * M), where N and M are the number of rows and columns in the matrix respectively.
SC : O(N*M)

Try solving now

2. OOPS Question

How does C++ support Polymorphism?

Problem approach

C++ is an Object-oriented programming language and it supports Polymorphism as well :

1) Compile Time Polymorphism: C++ supports compile-time polymorphism with the help of features like templates, function overloading, and default arguments.

2) Runtime Polymorphism: C++ supports Runtime polymorphism with the help of features like virtual functions. Virtual functions take the shape of the functions based on the type of object in reference and are resolved at runtime.

3. OOPS Question

What are the various types of constructors?

Problem approach

There are three types of constructors:

1) Default Constructor – With no parameters.

2) Parametric Constructor – With Parameters. Create a new instance of a class and also passing arguments simultaneously.

3) Copy Constructor – Which creates a new object as a copy of an existing object.

4. OOPS Question

What are the limitations of inheritance?

Problem approach

1) The main disadvantage of using inheritance is two classes get tightly coupled. That means one cannot be used independently of the other. If a method or aggregate is deleted in the Super Class, we have to refactor using that method in SubClass.

2) Inherited functions work slower compared to normal functions.

3) Need careful implementation otherwise leads to improper solutions.

5. DBMS Question

How to Delete a Table in SQL?

Problem approach

The DROP TABLE statement is used to drop an existing table in a database.

Syntax : DROP TABLE table_name;

6. DBMS Question

What are MySQL Triggers?

Problem approach

A trigger is a task that executes in response to some predefined database event, such as after a new row is added to a particular table. Specifically, this event involves inserting, modifying, or deleting table data, and the task can occur either prior to or immediately following any such event. 
Triggers have many purposes, including:

1) Audit Trails
2) Validation
3) Referential integrity enforcement

7. DBMS Question

What is meant by normalization and denormalization?

Problem approach

Normalization is a process of reducing redundancy by organizing the data into multiple tables. Normalization leads to better usage of disk spaces and makes it easier to maintain the integrity of the database. 

Denormalization is the reverse process of normalization as it combines the tables which have been normalized into a single table so that data retrieval becomes faster. JOIN operation allows us to create a denormalized form of the data by reversing the normalization.

03
Round
Easy
HR Round
Duration45 Minutes
Interview date29 Nov 2021
Coding problem1

First of all there was a basic Introduction and then there was a detailed discussion on the projects, after that I was asked some simple technical questions related to OOPS and DBMS as I had mentioned them in my resume. The HR questions were also preety standard and were asked to test my soft skills.

1. Basic HR Questions

What are your hobbies? or What are you passionate about?
What are your biggest achievements till date?
What are you most proud of?

Problem approach

Tip 1 : Be Confident 
Tip 2 : Prepare your resume throughout
Tip 3 : Projects play so important role in your candidature

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
4 rounds | 13 problems
Interviewed by Infosys private limited
1198 views
0 comments
0 upvotes
System Engineer
3 rounds | 3 problems
Interviewed by Infosys private limited
2677 views
0 comments
0 upvotes
System Engineer
2 rounds | 3 problems
Interviewed by Infosys private limited
0 views
0 comments
0 upvotes
System Engineer
2 rounds | 5 problems
Interviewed by Infosys private limited
1084 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Cognizant
4965 views
5 comments
0 upvotes
company logo
System Engineer
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
2463 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 1 problems
Interviewed by Tata Consultancy Services (TCS)
2038 views
0 comments
0 upvotes