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

Interview preparation journey

expand-icon
Journey
I started my preparation by strengthening my basics in programming and data structures. Gradually, I worked on improving problem-solving through regular practice and mock tests. Clearing the Infosys online test boosted my confidence, and I focused on revising core subjects before the interview. The entire process helped me understand my strengths, identify gaps, and grow both technically and personally. Even though I didn’t receive a final update, the journey itself was a valuable learning experience.
Application story
I applied off-campus through the Infosys Specialist Programmer hiring drive. After submitting my details, I received the online test invitation via email and took the proctored coding assessment on the scheduled date. A few days later, I was shortlisted for the interview round and received a call for a face-to-face interview at the Infosys Chandigarh office. The process was smooth and clearly communicated through emails.
Why selected/rejected for the role?
I was not selected because I could not answer around 30% of the technical questions with the required depth and confidence. Although I had cleared the test and understood the basics well, I struggled with some advanced concepts and optimizing solutions during the interview. This experience helped me realize the importance of strong fundamentals and clear communication.
Preparation
Duration: 3 Months
Topics: Data Structures, Algorithms, Arrays, Strings, OOPS, DBMS, Operating Systems, Recursion, Trees, Graphs
Tip
Tip

Tip 1: Practice at least 250–300 DSA questions to build confidence across common patterns.

Tip 2: Revise core subjects like OOPS, DBMS, and OS thoroughly, as these are frequently asked.

Tip 3: Work on at least one good project and understand every detail of its implementation.

Application process
Where: Hackerrank
Eligibility: Above 7 CGPA, no active backlogs, and a strong resume with projects. (Salary Package: 9.5 LPA)
Resume Tip
Resume tip

Tip 1: Add at least two well-explained projects and be ready to discuss their implementation in detail.

Tip 2: Keep the resume clean, honest, and skill-focused; avoid adding anything you can’t justify during the interview.

Interview rounds

01
Round
Medium
Online Coding Test
Duration180 minutes
Interview date6 Jul 2024
Coding problem3

The test was scheduled in the morning and had to be taken within a fixed login window. It was a web-proctored assessment with webcam monitoring, so the environment needed to be quiet and distraction-free. The interface was stable, and all instructions were clearly mentioned in the email. Since it was an online coding test, there was no interviewer present — only automated proctoring.

1. Corporate Skill Diversity

Easy
0/40

You are an HR analyst at a large corporation. The company's organizational structure is a tree, with the CEO at the root. Each employee is a node, and a direct report relationship is an edge. Every employee has been tagged with a primary "skill ID," an integer representing their main expertise.


Your task is to answer a series of queries from management. For any given manager u in the company, they want to know the skill diversity of their team. The skill diversity is defined as the number of unique skills present among that manager and all the employees who directly or indirectly report to them (i.e., their entire subtree).


Problem approach

Step 1: I first performed a DFS traversal to record the subtree range of every node using in-time and out-time in an Euler Tour array. This helped convert each subtree into a continuous segment.

Step 2: After flattening the tree, each subtree query became:
“Count distinct values in the array segment [in[u], out[u]].”

Step 3: To process distinct queries efficiently, I used a technique like Mo’s Algorithm on Trees or DSU on Tree (small-to-large merging).
I chose the DSU-on-Tree approach:

  • Maintain a frequency map of values in the current subtree
  • Merge smaller child maps into the larger one to reduce complexity
  • Maintain a running count of distinct values

Step 4: For each query node uuu, once its subtree data structure was ready, I returned the count of distinct values.

Step 5: I optimized the solution to run in approximately O(N log ⁡N) or O(N sqrt{N}), depending on the method used, which is suitable for large constraints.

Try solving now

2. Maximize Segment Diversity

Easy
0/40

You are a market analyst tasked with studying customer purchase data to identify periods of high product diversity. You are given a sequence of purchases, A, where each element is a product_id.


To analyze this data, you must split the entire sequence into exactly K continuous, non-empty "time windows" (segments).


The "diversity score" of a single time window is defined as the number of unique product_ids it contains. Your goal is to find a way to split the purchase history into K windows such that the sum of the diversity scores of all windows is maximized.


Problem approach

Step 1: I analyzed that each box must contain a continuous subarray, so the problem becomes splitting the array into K segments.
Step 2: I used dynamic programming, where dp[k][i] represents the maximum total distinct count when dividing first i elements into k boxes.
Step 3: To speed up transitions, I maintained frequency of elements using a sliding window while trying all valid segment breaks.
Step 4: For each possible segment end, I computed the distinct count on the fly and updated the DP table.
Step 5: Optimized it using prefix techniques to avoid recomputation and ensure it fits within constraints

Try solving now

3. Log File Analysis

Easy
0/40

You are a data engineer at a large tech company, tasked with analyzing server logs to measure system load. The log is a sequence of N events, where each event is identified by a task_id.


To analyze the logs, you must divide the entire sequence of N events into exactly K consecutive, non-empty "analysis windows" (segments).


The "processing cost" for a single window is a measure of its complexity. It is calculated as follows: for each unique task_id that appears in the window, find the distance between its first and last occurrence within that window and add it to the window's total cost.


Your goal is to find a division of the logs into K windows that minimizes the total processing cost across all windows.


Problem approach

Step 1: Observed that each segment must be a continuous subarray, so dynamic programming is suitable. Let dp[k][i] store the minimum cost for dividing the first i elements into k segments.

Step 2: Calculated segment costs using two pointers and frequency maps to track first/last occurrences and compute the cost of the current segment efficiently.

Step 3: Iterated possible split points for each segment and updated dp values:
dp[k][i] = min(dp[k][i], dp[k-1][j] + cost(j+1, i)).

Step 4: Used an optimized technique (like maintaining frequency arrays and incremental updates) to compute the cost of sliding windows without recomputing from scratch.

Step 5: Filled the DP table for all K segments and returned dp[K][N] as the minimum possible cost.

Try solving now
02
Round
Medium
Face to Face
Duration45 minutes
Interview date4 Oct 2024
Coding problem4

The interview was scheduled around noon, and the environment at the Infosys campus was calm and professional. All shortlisted candidates were asked to wait in the lobby until their turn. The interviewer was polite and focused mainly on my problem-solving approach, core subjects, and project understanding. The discussion was detailed yet comfortable, and the interviewer provided guidance whenever needed without adding pressure. Overall, the experience was structured, smooth, and well-organized.

1. Digit Zero Tally

Moderate
0/80

You are given a positive integer N. Your task is to calculate the total number of times the digit '0' appears in the decimal representations of all integers from 1 to N, inclusive.


Problem approach

Step 1: First, I tried the direct brute-force solution: iterating from 1 to N, converting each number to a string, and counting the digit ‘0’. I explained this clearly to the interviewer.

Step 2: The interviewer asked whether this approach would work for large values of N. I explained the time complexity and why it becomes slow.

Step 3: Then, I discussed the optimized mathematical approach that counts zeros digit by digit using positional analysis (units, tens, hundreds).
This method uses the idea of breaking N into left, current, and right parts to compute how many zeros appear at each position.

Step 4: I explained the logic with an example and showed how the optimized solution works in O(log N) time.

Try solving now

2. DBMS

  • What are ACID properties? (Learn)
  • What is normalization, and why is it important? (Learn)
  • SQL query: Find the 4th highest salary.
  • Relational vs. non-relational databases — when to use which? (Learn)

3. System Design

  • Explain the SOLID principles. (Learn)
  • How would you scale a system? Explain the high-level approach.

4. OS Concepts

  • What is a race condition? (Learn)
  • What are deadlocks and how do you prevent them? (Learn)
  • Process vs. thread.
  • Semaphores vs. mutex — differences and use cases. (Learn)

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
130 views
0 comments
0 upvotes