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

Interview preparation journey

expand-icon
Journey
I started my journey in coding in my second year during the COVID-19 lockdown when I came home. I initially began programming by learning the basics of C++. Later, I participated in contests on CodeStudio and solved questions on Coding Ninjas. I remained consistent and completed a 3-month streak with one of my friends. After three months, I solved more questions on CodeStudio and Coding Ninjas. In my third year, I transitioned to other coding platform for interview preparation because companies were coming for internships. I also studied core subjects like OS, DBMS, OOPS, and CN in depth. This way, I was well-prepared before the placement season.
Application story
I applied for the HackwithInfy 2022 Coding Hackathon organized by Infosys around February and March. I participated in that coding hackathon.
Why selected/rejected for the role?
There were 3 questions in the Hackathon, and I solved all three of them and secured a rank under 100 in that Hackathon. I have done a lot of practice on various coding platforms. My communication skills are also good, which added a plus point to my selection process.
Preparation
Duration: 10 months
Topics: Data Structures and Algorithms, Operating System, Database Management System, OOPS, Tree and Graph
Tip
Tip

Tip 1: Practice questions and revise those questions.
Tip 2: I personally recommend Coding Ninjas and CodeStudio for interview preparation.
Tip 3: Participate in most contests organized by Coding Ninjas and CodeStudio, held biweekly and weekly.

Application process
Where: Company Website
Eligibility: 6.5 CGPA
Resume Tip
Resume tip

Tip 1: Have at least 2 projects on your resume.
Tip 2: Include genuine points and skills on your resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration180 minutes
Interview date10 Mar 2022
Coding problem3

There were 2 rounds of interviews: the first round was a coding test, and the second round was a 1-hour interview.

1. Minimum Swaps

Moderate
10m average time
90% success
0/80
Asked in companies
Thought WorksIntuitVirtusa

During Endgame Natasha(Black Widow) sacrificed her life for the soul stone.

Hulk wants to bring Natasha back. So, he came to Goku for help. Goku told him he will help Hulk if he can solve the task given by him. Hulk accepts the challenge of Goku.

Goku gave Hulk a list of ‘N’ numbers and a number ‘K’. The task is to rearrange the elements of the list such that all elements less than or equal to ‘K’ become adjacent to each other. Hulk can only swap any two elements of the array/list multiple times. Goku wants Hulk to do the task using the minimum number of swaps.

As Hulk is not good at maths so he called you to solve the task given by Goku to save Natasha.The fate of Natasha lies in your hand.

Problem approach

I had solved this problem earlier, so it did not take me much time to solve it. I applied the recursive method to solve the problem and used DP to optimize it.

Try solving now

2. Count Ways To Reach The N-th Stairs

Moderate
30m average time
80% success
0/80
Asked in companies
MicrosoftMorgan StanleyAdobe

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Note:

Note: Since the number of ways can be very large, return the answer modulo 1000000007.
Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Try solving now

3. Convert a binary tree to its sum tree

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

Given a binary tree of integers, you are supposed to modify the given binary tree to a sum tree where each node value is replaced by the sum of the values of both left and right subtrees in the given tree. The value of leaf nodes is changed to zero.

Example:
Below is the example showing the input tree and its sum tree.  

alt text

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date20 May 2022
Coding problem2

It was an online video call round of 60 minutes.

1. Remove String

Moderate
35m average time
60% success
0/80
Asked in companies
OpenTextAmazonSamsung

You have been given a linked list where each node has a single character. You have also been given a string 'STR'.

You have to remove all the occurrences of string STR from the linked list.

Note:
1. Start checking from the end of the linked list and not from the beginning. For example, if the linked list is ( a, b, a ,b, a)  and the string is equal to “aba” , then the answer should be (a b), not (b a).

2. After removing an occurrence check again for new formations.
Try solving now

2. DBMS Questions

1) Stored procedure. (Learn)

2) Trigger. (Learn)

3) Delete and Truncate differences. (Learn)

4) Data warehousing. (Learn)

5) ACID Properties. (Learn)

Problem approach

Tip 1: Revise all the concepts of DBMS for at least 30 minutes daily.
Tip 2: Read the basic concepts of DBMS.
Tip 3: Practice SQL regularly.

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