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 | 11 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Java, Data Structures and Algorithms, REST services, Spring Boot, React js
Tip
Tip

Tip 1 : Do at least one project in every language or technology you learned.
Tip 2 : Must learn the basics like DSA and Oops.
Tip 3 : Must perform the hands-on coding questions for every concept you learn in coding.

Application process
Where: Other
Eligibility: B.tech 2019, 2020, 2021 passouts.
Resume Tip
Resume tip

Tip 1 : Must have 1-2 projects on every language or skill.
Tip 2 : Must have a few certifications and participations mentioned,

Interview rounds

01
Round
Medium
Online Coding Test
Duration180 minutes
Interview date24 Oct 2021
Coding problem3

In this round, There were 3 coding problems from easy to hard difficultly level.

1. Longest Increasing Subsequence

Moderate
0/80
Asked in companies
Paytm (One97 Communications Limited)PayUGoldman Sachs

'N' students are standing in a row. You are given the height of every student standing in the row. Your task is to find the longest strictly increasing subsequence of heights from the row such that the relative order of the students does not change.

A subsequence is a sequence that can be derived from another sequence by deleting zero or more elements without changing the order of the remaining elements.
Try solving now

2. Flip Bits

Easy
15m average time
85% success
0/40
Asked in companies
AmazonAmdocsMAQ Software

You are given an array of integers ARR[] of size N consisting of zeros and ones. You have to select a subset and flip bits of that subset. You have to return the count of maximum one’s that you can obtain by flipping chosen sub-array at most once.

A flip operation is one in which you turn 1 into 0 and 0 into 1.

For example:
If you are given an array {1, 1, 0, 0, 1} then you will have to return the count of maximum one’s you can obtain by flipping anyone chosen sub-array at most once, so here you will clearly choose sub-array from the index 2 to 3 and then flip it's bits. So, the final array comes out to be {1, 1, 1, 1, 1} which contains five ones and so you will return 5.
Try solving now

3. XOR Query

Moderate
10m average time
90% success
0/80
Asked in companies
Urban Company (UrbanClap)UberRubrik, Inc.

Assume you initially have an empty array say ‘ARR’.

You need to return the updated array provided that some ‘Q’ number of queries were performed on this array.

The queries are of two types:

1. 1 ‘VAL’, for this type of query, you need to insert the integer 'VAL' to the end of the array.
2. 2 ‘VAL’, for this type of query, you need to take the bitwise XOR of all the elements of the array with 'VAL' i.e each element of the array ‘ARR’ will be updated as ‘ARR[i]’ = ‘ARR[i]’ ^ ‘VAL’ ( ^ denotes the bitwise XOR operation).

Note:

1) Bitwise XOR operation takes two numbers and performs XOR operation on every bit of those two numbers. For example, consider two numbers 2 and 3 their bitwise XOR will be 1. Because the binary representation of 2 is '10' and the binary representation of 3 is '11'. And XOR of '10' and '11' will be '01'(because XOR evaluates to 0 if the corresponding bits are the same in both the operands, otherwise it evaluates to 1), which is equal to 1.

2) The first query will always be a type 1 query.

3) Note that the ith query should be performed on the array obtained after performing (i-1)th query on the array and so on i.e the changes of each query are updated on the original array itself.
Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date24 Nov 2021
Coding problem8

1. Swap Two Numbers

Easy
10m average time
0/40
Asked in companies
CIS - Cyber InfrastructureGenpactPaytm (One97 Communications Limited)

You are given two numbers 'a' and 'b' as input.


You must swap the values of 'a' and 'b'.


For Example:
Input: 
'a' = 8, 'b' = 5

Output:
5 8

Explanation:
Initially, the value of 'a' and 'b' is 8 and 5, respectively.

After swapping, the value of 'a' is 5, and the value of 'b' is 8.
Problem approach

Step 1: Provide inputs for x, y
Step 3: Print x and y
Step 4: x = x + y
STEP 5: y= x - y
STEP 6: x =x - y
STEP 7: print x and y as values for x and y are swapped

Try solving now

2. Leap Year

Easy
15m average time
80% success
0/40
Asked in companies
Tata Consultancy Services (TCS)CognizantSAP Labs

You are given a year in the form of an integer 'N', and your task is to check whether the given year is a leap year or not.

Note:

1) A year is said to be a leap year if it has 366 days. Normal years have 365 days.

2) The integer 'N' does not contain any leading zeros.
Try solving now

3. OS Question

Name some different kinds of operations that are possible on the semaphore.

Problem approach

Tip 1 : Wait()
Tip 2 : Signal()

4. OS Question

What do you mean by process synchronization?

Problem approach

Tip 1 : Cooperative Process
Tip 2 : Independent Process

5. DBMS Question

What are the advantages of DBMS?

Problem approach

Tip 1 : Ensure data consistency
Tip 2 : Easy accessibility
Tip 3 : Provides backup and recovery

6. DBMS Question

What do you mean by Data Model?

Problem approach

Tip 1 : These models are used to describe the relationship between the entities and their attributes.
Tip 2 : Hierarchical data model
Tip 3 : Entity-Relationship model and so on.

7. Technical Question

What is Caching? What are the various cache update strategies available in caching?

Problem approach

Tip 1 : Caching refers to the process of storing file copies in a temporary storage location called cache which helps in accessing data more quickly thereby reducing site latency

8. Technical Question

What do you understand by Leader Election?

Problem approach

Tip 1 : n a distributed environment where there are multiple servers contributing to the availability of the application, there can be situations where only one server has to take lead for updating third-party APIs as different servers could cause problems while using the third-party APIs

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
924 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 | 4 problems
Interviewed by Infosys private limited
131 views
0 comments
0 upvotes
Specialist Programmer
2 rounds | 4 problems
Interviewed by Infosys private limited
76 views
0 comments
0 upvotes