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

System Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures, DBMS, Aptitude, Competitive Programming, OOPS
Tip
Tip

Tip 1 : Be prepared for each and every line written in your resume
Tip 2 : Only mention things that you know perfectly
Tip 3 : Prepare atleast one good project

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

Tip 1 : For fresher, don't make it more than 1 page.
Tip 2 : Don't add the things you aren't aware off

Interview rounds

01
Round
Easy
Online Coding Test
Duration60 Minutes
Interview date3 Feb 2022
Coding problem2

It was a online coding round in the afternoon

1. Maximum Element

Moderate
10m average time
80% success
0/80
Asked in company
Tata Consultancy Services (TCS)

There is an array ‘A’ of length ‘N’. You can perform the following operation on the array, select ‘i’, ‘1< i <= N - 1’ and replace ‘A[i]’ with ‘A[i] | A[i - 2]’, where ‘|’ represents bitwise OR operation.

Your task is to find the maximum element ‘X’ you can obtain by operating zero or more times.

Example:

‘A’ = [1, 3, 2, 5]

A[3] = A[3] or A[1] = 3 | 5 = 7    
‘A’ = [1, 3, 2, 7]
Hence the maximum element we can obtain is 7.
Therefore, the answer is 7.
Problem approach

Just try to apply the basic concept of arrays using loops

Try solving now

2. Minimum Parentheses

Easy
10m average time
90% success
0/40
Asked in companies
Info Edge India (Naukri.com)MicrosoftAmazon

Given a string "pattern", which contains only two types of characters ‘(’, ‘)’.

Your task is to find the minimum number of parentheses either ‘(’, ‘)’ we must add the parentheses in string ‘pattern’ and the resulted string is valid.

Condition for valid string-

Every opening parenthesis ‘(’ must have a correct closing parenthesis ‘)’.

Example - ‘(()(()))’, ‘()()()’, ‘((()))’ are valid string, and ‘(((’, ‘(()’, ‘)(())’ are invalid string.

Note:
1. You are not required to print the output explicitly, it has already been taken care of. Just implement the function and return the minimum number of parentheses required to make a string valid.
Problem approach

We keep the track of balance of the string i:e the number of ‘(‘ minus the number of ‘)’. A string is valid if its balance is 0, and also every prefix has non-negative balance.

Try solving now
02
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date17 Feb 2022
Coding problem1

9 MCQs and 1 coding question followed by HR round

1. Construct Binary Tree From Inorder and Preorder Traversal

Easy
10m average time
90% success
0/40
Asked in companies
IBMAmazonApple

You have been given the preorder and inorder traversal of a binary tree. Your task is to construct a binary tree using the given inorder and preorder traversals.


Note:
You may assume that duplicates do not exist in the given traversals.
For example :
For the preorder sequence = [1, 2, 4, 7, 3] and the inorder sequence = [4, 2, 7, 1, 3], we get the following binary tree.

Example

Problem approach

Pick an element from Preorder. Increment a Preorder Index Variable (preIndex in below code) to pick the next element in the next recursive call.
Create a new tree node tNode with the data as the picked element.
Find the picked element’s index in Inorder. Let the index be inIndex.
Call buildTree for elements before inIndex and make the built tree as a left subtree of tNode.
Call buildTree for elements after inIndex and make the built tree as a right subtree of tNode.
return tNode.

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

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
1199 views
0 comments
0 upvotes
System Engineer
3 rounds | 3 problems
Interviewed by Infosys private limited
2678 views
0 comments
0 upvotes
System Engineer
2 rounds | 5 problems
Interviewed by Infosys private limited
1084 views
0 comments
0 upvotes
System Engineer
3 rounds | 3 problems
Interviewed by Infosys private limited
1026 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)
2039 views
0 comments
0 upvotes