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

Specialist Programmer

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Trees, Dynamic Programming, Object oriented programming, Stacks and queues
Tip
Tip

Tip 1 : Solve programming questions in various platforms 
Tip 2 : Try solving the program from brute force approach to optimised approach 
 

Application process
Where: Other
Eligibility: 60% marks, CSE/ECE/IT/CS Branch
Resume Tip
Resume tip

Tip 1 : Mention all the certifications you have done 
Tip 2 : Projects you have done related to the skills you mentioned.

Interview rounds

01
Round
Medium
Online Coding Test
Duration180 Minutes
Interview date28 Jan 2022
Coding problem2

This round is based on coding there are 3 coding questions and the level of the questions will be easy medium and hard 
My exam was at morning 9 am and the environment is smooth I did not face any issues while writing the exam 
I was able to solve two questions

1. Arithmetic Expression Evaluation

Moderate
30m average time
70% success
0/80
Asked in companies
AdobeFacebookMicrosoft

You are given a string ‘expression’ consists of characters ‘+’, ‘-’, ‘*’, ‘/’, ‘(‘, ‘)’ and ‘0’ to ‘9’, that represents an Arithmetic Expression in Infix Notation. Your task is to evaluate this Arithmetic Expression.

In Infix Notation, operators are written in-between their operands.

Note :
1. We consider the ‘/’ operator as the floor division.

2. Operators ‘*’ and ‘/’ expression has higher precedence over operators‘+’ and ‘-’ 

3. String expression always starts with ‘(‘ and ends with ‘)’.

4. It is guaranteed that ‘expression’ represents’ a valid expression in Infix notation.

5. It is guaranteed that there will be no case that requires division by 0.

6. No characters other than those mentioned above are present in the string. 

7. It is guaranteed that the operands and final result will fit in a 32-bit integer.
For example :
Consider string ‘expression’ = ‘((2+3)*(5/2))’. 
Then it’s value after evaluation will be ((5)*(2)) = 10. 
Problem approach

Step 1 : First I split the string with * as delimiter and make it as list 
Step 2 : Then loop through 2 power of length of the list and tried all the combinations possible by taking 1 as + and 0 as - and store it in a list 
Step 3 : Based on the list values calculate the value of the expression
Step 4 : check if it is equal to K 
Step 5 : if the value is equal to K then print the expression

Try solving now

2. Maximum XOR

Hard
10m average time
90% success
0/120
Asked in companies
Red HatErnst & Young (EY)InMobi

You are given a string str consisting of lowercase English letters. You are also given M queries

The queries will be
Type 1:query of form (1 i v): set str[i] as vth character in alphabet. Means for v=0 replace with ‘a’ and v=1 replace with ‘b’ and so on
Type 2:query of form (2 l r) : count the number of distinct elements in the range [l,r]

Your task is to find the XOR of all the values of all the queries of type 2

Problem approach

Step 1: first check the type of query if the query is type 1 then do the task in type 1
Step 2: if the query is type 2 then do the task 2 and append the values to a list
Step 3: initialise a variable with 0 and do xor of that variable with all the values in the list if all the queries are done

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date2 Apr 2022
Coding problem2

For me the interview happened very smoothly without any technical issues

1. String Sorting

Moderate
30m average time
60% success
0/80
Asked in companies
FacebookHCL TechnologiesPaytm (One97 Communications Limited)

Given a list of strings print the strings in the ascending order based on length if two strings have same length then we need to print the string which is lexicographically small.
 

Problem approach

Step 1 : I have split the given string with space as delimiter and store it in a list
Step 2 :Then applied the insertion sort based on the length of the strings 
Step 3 : Included a condition if the two strings are of same length for lexicographical sorting 

Try solving now

2. System Design

There was a discussion going on regarding the projects I have included in the resume.

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
Specialist Programmer
2 rounds | 4 problems
Interviewed by Infosys private limited
925 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 3 problems
Interviewed by Infosys private limited
875 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 11 problems
Interviewed by Infosys private limited
1239 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 4 problems
Interviewed by Infosys private limited
131 views
0 comments
0 upvotes