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

Interview preparation journey

expand-icon
Journey
I started by learning about Data Structures and Algorithms (DSA), which led me to explore competitive programming. It was a great way to improve my problem-solving skills and analytical thinking. Later on, I moved into software development, where I learned how to use coding for real-life projects. This journey taught me the importance of always learning, being flexible, and never giving up when facing challenges.
Application story
I applied using Infosys' official website. There was a coding round with three questions. I answered 2.9 questions correctly and was invited to an interview for the position of Specialist Programmer. After passing the interview, I received an offer letter for full-time employment.
Why selected/rejected for the role?
It was an amazing experience. The interview lasted about an hour. During the first half, he asked me questions regarding DSAs and related topics, and in the second half, he covered the fundamental ideas of DBAs, OPS, and OS.
Preparation
Duration: 2 months
Topics: Data Structures and algorithm, OOPS, DSA, DBMS, OS, SQL
Tip
Tip

Tip 1: Python, Java, or C++ are the object-oriented languages you should choose and stick with. Use that specific language for DSA practice, and work in Code Studio as well.

Tip 2: Practice fundamental topics such as OS, SQL, DBMS, etc.

Tip 3: Try participating in competitive programming contests.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1: Complete at least two full-stack projects.

Tip 2: Demonstrate your problem-solving skills.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration180 minutes
Interview date4 Mar 2022
Coding problem3

1. Rotate array

Easy
25m average time
80% success
0/40
Asked in companies
Dell TechnologiesThalesMicrosoft

Given an array 'arr' with 'n' elements, the task is to rotate the array to the left by 'k' steps, where 'k' is non-negative.


Example:
'arr '= [1,2,3,4,5]
'k' = 1  rotated array = [2,3,4,5,1]
'k' = 2  rotated array = [3,4,5,1,2]
'k' = 3  rotated array = [4,5,1,2,3] and so on.
Problem approach

Step 1: First I store the elements from index d to N-1 into the temp array.
Step 2: Then store the first d elements of the original array into the temp array.
Step 3: Copy back the elements of the temp array into the original array

Try solving now

2. Max Frequency

Easy
10m average time
95% success
0/40
Asked in companies
IntuitDunzoChegg Inc.

Let’s define the beauty of an array to be equal to the value present in the array, which is having the maximum frequency. If there are multiple such values, then the smallest among such values will be selected.

Alice gave Bob an array ‘A’ of size ‘N’ and asked him to find the beauty of the frequencies of the values present in the array. In simple words, Bob first needs to find the frequencies of all values present in the array, then find the beauty of this frequency array.

Help Bob in finding the beauty of the frequencies of the values present in the array.

Problem approach

Step 1: Create an array of 26 
Step 2: Store frequency using Array[character - 'a'] formula
Step 3: Just print the array

Try solving now

3. Maximum Sum Circular Subarray

Moderate
10m average time
90% success
0/80
Asked in companies
UberHousing.comalibaba

You have been given a circular array/list ‘ARR’ containing ‘N’ integers. You have to find out the maximum possible sum of a non-empty subarray of ‘ARR’.

A circular array is an array/list in which the end of the array connects to the beginning of the array.

A subarray may only include each element of the fixed buffer of ‘ARR’ at most once. (Formally, for a subarray ‘ARR[i]’, ‘ARR[i+1]’, ..., ‘ARR[j]’, there does not exist ‘i’ <= ‘k1’, ‘k2’ <= ‘j’ with ‘k1’ % ‘N’ = k2 % ‘N’.)

For Example:

The ‘ARR’ = [1, 2, -3, -4, 5], the subarray [5, 1, 2] has the maximum possible sum which is 8. This is possible as 5 is connected to 1 because ‘ARR’ is a circular array.
Problem approach

You have been given a circular path. There are N petrol pumps on this path that are numbered from 0 to N - 1 (Both inclusive). Each petrol pump has two values associated with it:
1)The amount of petrol that is available at this particular petrol pump.
2)The distance to reach the next petrol pump.
You are on a truck having an empty tank of infinite capacity. You can start the tour from any of the petrol pumps. Your task is to calculate the first petrol pump from where the truck will be able to complete the full circle or determine if it is impossible to do so.
You may assume that the truck will stop at every petrol pump and it will add the petrol from that pump to its tank. The truck will move one kilometre for each litre of petrol consumed.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date9 Jun 2022
Coding problem3

1. Lexicographically smallest equivalent string

Moderate
25m average time
75% success
0/80
Asked in companies
Paytm (One97 Communications Limited)MicrosoftPayPal

Ninja has two strings ‘s’ and ‘t’ of same length, he knows that both strings are equivalent strings which means s[i], t[i] will follow all rules of any equivalence relation that are:

  • Reflexive : s[i] = t[i]
  • Symmetric: s[i] = t[i] => t[i] = s[i]
  • Transitive: if s[i] = t[i] and t[i] = s[j] then s[i] = s[j]
  • Ninja wants your help to find the lexicographically smallest equivalent string of a given string ‘str’.

    Note:

    1. String ‘s’, ‘t’ and ‘str’ consist of only lowercase English letters from ‘a’ – ‘z’.
    2. String ‘s’ and ‘t’ are of same length.
    

    For example:

    Let s = “abc” , t = “xyz” and str = “xbc” then all strings that we can generate are “abc”, “abz”, “ayc”,”ayz”, “xbc”, “xbz”, “xyc”, “xyz” and smallest of all these is “abc”. 
    
    Problem approach

    Step 1: I split the given string using space as the delimiter and stored it in a list.
    Step 2: Then, I applied insertion sort based on the length of the strings.
    Step 3: I included a condition for lexicographical sorting if two strings are of the same length.

    Try solving now

    2. OS Questions

    What is scheduling? (Learn)
    What is virtual memory? (Learn)
    What are semaphores? (Learn)

    Problem approach

    Tip 1: Cover the interview preparation list
    Tip 2: Cover all the major topics briefly
    Tip 3: Read OS thoroughly

    3. DBMS Questions

    What are ACID properties? (Learn)
    Difference between MySQL and NoSQL databases? (Learn)

    Problem approach

    Tip 1: Do practice for SQL queries

    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