Infosys Interview Prep (SE / DSE / SP)

Infosys runs the widest gap between tracks of any company in this group, and it is the single most useful thing to understand before you prepare. The base Systems Engineer assessment is an aptitude paper — quantitative, logical reasoning and verbal ability, with a pseudocode section and puzzles rather than a real coding round. The Specialist Programmer route is a three-hour coding test with problems at honest LeetCode medium and above. Same company, same campus drive, completely different preparation.

For the Systems Engineer track the aptitude paper is what rejects people, and the sectional cut-offs are what make it unforgiving: a strong overall score with one weak section still fails, and reports consistently describe no way back to a section once you leave it. For the Specialist Programmer and Digital Specialist Engineer tracks the coding round is the filter, usually reached through HackWithInfy, where solving more than one of the three problems is what puts you in the interview pool. The interviews that follow are conventional — OOP, DBMS, operating systems, networks, SQL and a project deep dive, with a second technical round on the higher tracks.


Interview Process

Stage Duration Focus
Online Assessment (SE track) ~95-100 min Quantitative, logical reasoning, verbal ability, pseudocode, puzzles
HackWithInfy / SP Coding Round ~3 hours 3 DSA problems, easy through hard, elimination only
Technical Interview 30-60 min OOP, DBMS, OS, networks, SQL, project deep dive
Technical Interview 2 (SP and PP) 45-60 min Live coding plus deeper fundamentals
HR Interview 15-30 min Relocation, learning agility, communication

Sectional cut-offs decide the aptitude round, not the total. Reported formats have no negative marking but also no cross-navigation, so you cannot bank time by skipping a section and returning to it. The number of technical rounds follows the track: one for Systems Engineer, usually two for Specialist Programmer and Power Programmer, with the second weighted toward live coding. HackWithInfy runs as an annual competition with its own qualifying round and finale, and strong performers are routed into Specialist Programmer and Digital Specialist Engineer interviews, which is why it is worth entering even if you are already in a campus process.


What Infosys Actually Tests

Derived from 221 reported Infosys-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 53 24%
Medium 117 53%
Hard 51 23%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Dynamic Programming 52 24%
2 Sliding Window & Two Pointers 31 14%
3 Arrays & Hashing 28 13%
4 Intervals, Greedy & Sorting 22 10%
5 Binary Search 20 9%
6 Trees 16 7%
7 Stack & Monotonic Stack 9 4%
8 Strings 7 3%
9 Graphs 7 3%
10 Heap / Priority Queue 6 3%

Infosys Signature Problems

These rank high on Infosys’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Find the Number of Subsequences With Equal GCD Euclidean Algorithm + GCD Hard 6 of 142 LeetCode →
2 Find Building Where Alice and Bob Can Meet Fenwick Tree + Segment Tree Hard 5 of 142 LeetCode →
3 Good Subsequence Queries Segment Tree + Number Theory Hard 2 of 142 LeetCode →
4 Count the Number of Ideal Arrays Fermat’s Little Theorem + Prime Factorization Hard 4 of 142 LeetCode →
5 Maximum Walls Destroyed by Robots Binary Search + DP Hard 4 of 142 LeetCode →
6 Longest Well-Performing Interval Monotonic Stack + Prefix Sum Medium 2 of 142 LeetCode →
7 Maximum Product After K Increments Heap + Greedy Medium 2 of 142 LeetCode →
8 Maximum Sum of Subsequence With Non-adjacent Elements Segment Tree + Divide and Conquer Hard 2 of 142 LeetCode →
9 Sum of Beautiful Subsequences Fenwick Tree + Number Theory Hard 2 of 142 LeetCode →
10 XOR After Range Multiplication Queries I Divide and Conquer + Prefix Sum Medium 2 of 142 LeetCode →
11 XOR After Range Multiplication Queries II Divide and Conquer + Prefix Sum Hard 2 of 142 LeetCode →
12 Minimum Addition to Make Integer Beautiful Greedy Medium 3 of 142 LeetCode →
13 The Number of Beautiful Subsets Combinatorics + Backtracking Medium 4 of 142 LeetCode →
14 Trionic Array I Array Easy 4 of 142 LeetCode →

If you are short on time, these carry more Infosys-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Infosys’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Two Sum Hash Table + Array Easy Solve →
2 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
3 Maximum Subarray Divide and Conquer + DP Medium Solve →
4 Second Highest Salary Database Medium Solve →
5 Best Time to Buy and Sell Stock DP Easy Solve →
6 Lemonade Change Greedy Easy LeetCode →
7 Merge Intervals Quicksort Medium Solve →
8 Best Time to Buy and Sell Stock II Greedy + DP Medium Solve →
9 Climbing Stairs Memoization + DP Easy Solve →
10 Container With Most Water Greedy + Two Pointers Medium Solve →
11 Frog Jump DP Hard Solve →
12 House Robber DP Medium Solve →
13 Koko Eating Bananas Binary Search Medium Solve →
14 Move Zeroes Two Pointers Easy Solve →
15 Number of Islands Union-Find + BFS Medium Solve →

System Design (HLD) Problems Asked at Infosys

# Problem Difficulty Link
1 Payment System Advanced Read →
2 Rules Engine (Workflow and Eligibility Rules) Intermediate Read →
3 Notification System Intermediate Read →
4 Distributed Job Scheduler Advanced Read →
5 E-commerce Platform Advanced Read →
6 Distributed Cache Intermediate Read →
7 URL Shortener Beginner Read →

LLD / Machine Coding Problems Asked at Infosys

Entry-level Infosys loops do not include a design round, so treat both lists here as scoped to lateral and experienced hiring, where Infosys does interview for architecture and integration. The one exception worth preparing is class modelling: Specialist Programmer and Power Programmer technical rounds sometimes ask you to model a small system in classes, which is what the LLD pages below are good practice for.

# Problem Difficulty Link
1 Library Management Beginner Read →
2 Parking Lot Beginner Read →
3 Splitwise (Expense Splitting) Intermediate Read →
4 Inventory Management Intermediate Read →
5 Task Scheduler Intermediate Read →

DSA Problems Asked at Infosys

78 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Infosys’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 23 on the list.

# Problem Pattern Difficulty Link
1 Best Time to Buy and Sell Stock DP Easy Solve →
2 Maximum Subarray Divide and Conquer + DP Medium Solve →
3 Find the Number of Subsequences With Equal GCD Euclidean Algorithm + GCD Hard LeetCode →
4 House Robber DP Medium Solve →
5 Climbing Stairs Memoization + DP Easy Solve →
6 Count the Number of Ideal Arrays Fermat’s Little Theorem + Prime Factorization Hard LeetCode →
7 Maximum Walls Destroyed by Robots Binary Search + DP Hard LeetCode →
8 Stone Game VIII Zero-Sum Game + Minimax Hard LeetCode →
9 Trionic Array II DP Hard LeetCode →
10 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
11 Minimum Total Distance Traveled DP Hard LeetCode →
12 Number of Beautiful Integers in the Range DP Hard LeetCode →
13 The Number of Beautiful Subsets Combinatorics + Backtracking Medium LeetCode →
14 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 13 on the list.

# Problem Pattern Difficulty Link
15 Gas Station Greedy Medium Solve →
16 Eat Pizzas! Greedy Medium LeetCode →
17 Merge Intervals Quicksort Medium Solve →
18 Determine the Minimum Sum of a k-avoiding Array Greedy Medium LeetCode →
19 Find the Minimum Possible Sum of a Beautiful Array Greedy Medium LeetCode →
20 Largest Number After Mutating Substring Greedy Medium LeetCode →
21 Maximum Number of Consecutive Values You Can Make Greedy Medium LeetCode →
22 Minimum Addition to Make Integer Beautiful Greedy Medium LeetCode →
23 XOR After Range Multiplication Queries I Divide and Conquer + Prefix Sum Medium LeetCode →
24 XOR After Range Multiplication Queries II Divide and Conquer + Prefix Sum Hard LeetCode →
25 Remove Digit From Number to Maximize Result Greedy Easy LeetCode →
26 Lemonade Change Greedy Easy LeetCode →
27 Candy Greedy Hard Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 11 on the list.

# Problem Pattern Difficulty Link
28 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
29 Container With Most Water Greedy + Two Pointers Medium Solve →
30 Move Zeroes Two Pointers Easy Solve →
31 Next Permutation Two Pointers Medium Solve →
32 3Sum Two Pointers Medium Solve →
33 Remove Duplicates from Sorted Array Two Pointers Easy Solve →
34 4Sum Two Pointers Medium Solve →
35 Linked List Cycle Floyd Cycle + Linked List Easy Solve →
36 Minimum Window Substring Sliding Window Hard Solve →
37 Reverse Words in a String Two Pointers Medium Solve →
38 Rotate Array Two Pointers Medium Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 11 on the list.

# Problem Pattern Difficulty Link
39 Two Sum Hash Table + Array Easy Solve →
40 Second Highest Salary Database Medium Solve →
41 Palindrome Number Math Easy Solve →
42 Subarray Sum Equals K Prefix Sum Medium Solve →
43 Transform Array by Parity Counting + Sorting Easy LeetCode →
44 Rotting Oranges BFS Medium Solve →
45 Trionic Array I Array Easy LeetCode →
46 Rotate Image Matrix + Math Medium Solve →
47 Spiral Matrix Simulation + Matrix Medium Solve →
48 Product of Array Except Self Prefix Sum Medium Solve →
49 Concatenation of Array Simulation + Array Easy Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 7 on the list.

# Problem Pattern Difficulty Link
50 Find Building Where Alice and Bob Can Meet Fenwick Tree + Segment Tree Hard LeetCode →
51 Maximum Good Subtree Score Bitmask + Bit Manipulation Hard LeetCode →
52 Good Subsequence Queries Segment Tree + Number Theory Hard LeetCode →
53 Count Non Adjacent Subsets in a Rooted Tree Tree + DFS Hard LeetCode →
54 Maximum Sum of Subsequence With Non-adjacent Elements Segment Tree + Divide and Conquer Hard LeetCode →
55 Number of Nodes With Value One Binary Tree + BFS Medium LeetCode →
56 Sum of Beautiful Subsequences Fenwick Tree + Number Theory Hard LeetCode →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 6 on the list.

# Problem Pattern Difficulty Link
57 Maximize the Minimum Game Score Binary Search + Greedy Hard LeetCode →
58 Maximum Total Value Binary Search + Greedy Hard LeetCode →
59 Koko Eating Bananas Binary Search Medium Solve →
60 Find Peak Element Binary Search Medium Solve →
61 Frequency of the Most Frequent Element Sliding Window + Prefix Sum Medium Solve →
62 Binary Search Binary Search Easy Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 4 on the list.

# Problem Pattern Difficulty Link
63 Valid Anagram Sorting + Hash Table Easy Solve →
64 Group Anagrams Sorting + Hash Table Medium Solve →
65 Can Convert String in K Moves Hash Table + String Medium LeetCode →
66 Sort the People Sorting + Hash Table Easy LeetCode →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 3 on the list.

# Problem Pattern Difficulty Link
67 Minimum Reverse Operations Ordered Set + Union-Find Hard LeetCode →
68 Maximum Segment Sum After Removals Ordered Set + Union-Find Hard LeetCode →
69 Number of Islands Union-Find + BFS Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 3 on the list.

# Problem Pattern Difficulty Link
70 Maximum Product After K Increments Heap + Greedy Medium LeetCode →
71 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
72 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 2 on the list.

# Problem Pattern Difficulty Link
73 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
74 Longest Common Prefix Trie Easy Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 2 on the list.

# Problem Pattern Difficulty Link
75 Range Sum Query - Immutable Prefix Sum + Design Easy Solve →
76 Implement Queue using Stacks Queue + Design Easy Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 2 on the list.

# Problem Pattern Difficulty Link
77 Valid Parentheses Bracket Sequences + Stack Easy Solve →
78 Longest Well-Performing Interval Monotonic Stack + Prefix Sum Medium LeetCode →

Infosys’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 23 (26%) Best Time to Buy and Sell Stock, Maximum Subarray, Find the Number of Subsequences With Equal GCD
2 Intervals, Greedy & Sorting High 13 (14%) Gas Station, Eat Pizzas!, Merge Intervals
3 Sliding Window & Two Pointers High 11 (12%) Longest Substring Without Repeating Characters, Container With Most Water, Move Zeroes
4 Arrays & Hashing Medium-High 11 (12%) Two Sum, Second Highest Salary, Palindrome Number
5 Trees Medium-High 7 (8%) Find Building Where Alice and Bob Can Meet, Maximum Good Subtree Score, Good Subsequence Queries
6 Binary Search Medium-High 6 (7%) Maximize the Minimum Game Score, Maximum Total Value, Koko Eating Bananas
7 Strings Medium 4 (4%) Valid Anagram, Group Anagrams, Can Convert String in K Moves
8 Graphs Medium 3 (3%) Minimum Reverse Operations, Maximum Segment Sum After Removals, Number of Islands
9 Heap / Priority Queue Medium 3 (3%) Maximum Product After K Increments, Kth Largest Element in an Array, Top K Frequent Elements
10 Tries & String Search Medium 2 (2%) Longest Palindromic Substring, Longest Common Prefix

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Intervals, Greedy & Sorting, Sliding Window & Two Pointers covers the bulk of what Infosys actually asks. The rest is insurance for the one round that goes somewhere unexpected.


The Three Tracks, Side by Side

Infosys evaluates several tracks out of overlapping processes, and the names matter because people search for them and because the preparation genuinely differs.

Track How you get in What the test looks like Interview shape What to prepare
Systems Engineer (SE) Campus or off-campus aptitude assessment, or the InfyTQ certification route Quantitative, logical, verbal, pseudocode and puzzles with sectional cut-offs One technical round plus HR Aptitude to the cut-off in every section, one language, basic fundamentals
Digital Specialist Engineer (DSE) Strong coding performance, commonly through HackWithInfy Three-hour coding round, three problems Usually two technical rounds plus HR Medium DSA, fundamentals, a cloud or data project you can defend
Specialist Programmer (SP) HackWithInfy or a dedicated SP coding test Three-hour coding round reaching hard problems Two technical rounds with live coding, then HR Medium-to-hard DSA, system fundamentals, clean code under time
Power Programmer (PP) Top performance on the SP route or internal movement Same coding round, higher bar Deepest technical loop in the group Everything above plus depth in one stack

Packages differ substantially across these tracks and change every hiring cycle, so any number you find online is dated. The actionable version: the base track is won on aptitude and the elite tracks are won on coding, and almost nobody prepares for both.


Pseudocode and Puzzles: The Two Sections People Fail

These two sections have no analogue in a product-company loop, which is exactly why candidates arrive unprepared for them.

Pseudocode. You are given a short algorithm in a language-neutral syntax and asked what it prints, how many times a loop runs, or what a variable holds at the end. It rewards tracing, not writing.

Shape Typical prompt How to practice
Loop tracing Nested loops with a counter and a condition — what is the final value Trace by hand on paper, one row per iteration
Recursion output A small recursive function with a print inside — what is the output order Draw the call stack rather than reasoning in your head
Array mutation A loop that swaps or shifts elements — what is the final array Write the array state after each pass
Conditional logic Deeply nested if-else with overlapping conditions — which branch runs Evaluate conditions in written order, no shortcuts
Off-by-one A loop boundary chosen to look correct — how many times does the body run Check the first and last iteration explicitly
Operator precedence Mixed arithmetic and logical operators in one expression Bracket the expression yourself before evaluating

Puzzles. Classic logical puzzles with sequential constraints: arrangements, truth-tellers and liars, relationship chains, weighing and measuring problems. The technique matters more than the puzzle. Read every constraint before writing anything, build a grid, place only what is forced, and set a hard time limit so one puzzle cannot take the section down with it.


HR Round Questions

# Question
1 Are you willing to relocate to any Infosys development centre in India?
2 How do you learn a technology you have never touched, and how fast?
3 Tell me about the hardest thing you have taught yourself.
4 Walk me through your project and tell me what you would build differently now.
5 Tell me about a time you worked with someone who was not pulling their weight.
6 What will you do if you are trained in one technology and allocated to another?
7 Tell me about a time you failed at something academic or technical.
8 Why Infosys, and why this track specifically?
9 How do you keep yourself current once formal training ends?

Learning agility is the theme Infosys interviewers return to, because freshers go through a long structured training programme before allocation and the company is screening for people who survive it well. Have one concrete self-teaching story with a before and after — what you could not do, what you did about it, what you can do now. Vague enthusiasm about “being a quick learner” is the most common answer and carries no signal.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Best Time to Buy and Sell Stock, Maximum Subarray, Find the Number of Subsequences With Equal GCD
2 Dynamic Programming (part 2) House Robber, Climbing Stairs, Count the Number of Ideal Arrays
3 Intervals, Greedy & Sorting (part 1) Gas Station, Eat Pizzas!, Merge Intervals
4 Intervals, Greedy & Sorting (part 2) Determine the Minimum Sum of a k-avoiding Array, Find the Minimum Possible Sum of a Beautiful Array, Largest Number After Mutating Substring
5 Sliding Window & Two Pointers (part 1) Longest Substring Without Repeating Characters, Container With Most Water, Move Zeroes
6 Sliding Window & Two Pointers (part 2) Next Permutation, 3Sum, Remove Duplicates from Sorted Array
7 Arrays & Hashing Two Sum, Second Highest Salary, Palindrome Number
8 Trees Find Building Where Alice and Bob Can Meet, Maximum Good Subtree Score, Good Subsequence Queries
9 Binary Search Maximize the Minimum Game Score, Maximum Total Value, Koko Eating Bananas
10 Strings Valid Anagram, Group Anagrams, Can Convert String in K Moves
11 Graphs Minimum Reverse Operations, Maximum Segment Sum After Removals, Number of Islands
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Infosys Interviews

  1. Prepare each section to its own cut-off. Sectional cut-offs mean your weakest section decides the result. Find your weakest of quantitative, logical and verbal, and spend disproportionate time there instead of improving a section you already clear.
  2. Take pseudocode seriously as a separate skill. It is reading, not writing: trace loops and recursion by hand, track variable state line by line, and predict output. Candidates who only ever run code in an IDE are slow at this and the section is tight on time.
  3. Drill puzzles with a written method. Reported papers lean on classic logical puzzles with sequential constraints. Build the habit of drawing a constraint table before trying any arrangement, and of abandoning a puzzle at a fixed time limit.
  4. Enter HackWithInfy if you can code at all. It is the clearest route to the higher-package Specialist Programmer track, the qualifying round is three problems in three hours, and clearing more than one problem is the commonly reported threshold for the interview pool. The downside is an afternoon.
  5. For SP and PP, prepare medium DSA properly. The tagged list above skews easy and medium, but the three-hour coding round reaches genuinely hard. Arrays, strings, hashing, two pointers, recursion, trees and basic dynamic programming cover the bulk of it.
  6. Write SQL by hand before the technical round. Joins, group by with having, subqueries and the nth-highest-salary pattern turn up repeatedly across all tracks. These are quick to revise and quick to lose marks on.
  7. Have one project you can draw. Both technical rounds move from fundamentals into your project, and interviewers follow up on whatever you sound least sure about. Be able to sketch the components and name the one design decision you would reverse.

Other Company Prep


Assessment sections, timings and round counts here reflect commonly reported candidate experience rather than published documentation, and Infosys has used several different assessment variants across recent cycles. Track names, eligibility and compensation change between hiring years and are not quoted on this page. Confirm the current pattern and track list in the notification for your own drive.