Interview Intel · Infosys

Infosys coding interview
questions, leaked.

105 problems reported across recent Infosys interviews. Top patterns: array, string, dynamic programming. The list below is what most candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Infosys pulls from a pool of 105 problems split heavy toward medium difficulty (57 out of 105). You're looking at a dataset where arrays dominate the entire question set, appearing in 62 problems. If you walk in unprepared for array manipulation and two-pointer logic, you're threading needles during the live assessment. The good news: this distribution is predictable. The better news: if you hit a wall mid-OA on an array or dynamic-programming problem you haven't drilled, StealthCoder runs invisibly during your screen share and surfaces a working solution in seconds. You don't need to have seen every pattern. You need to know which ones matter most and have a safety net for the rest.

Tracked problems
105
Easy
32/ 30%
Medium
57/ 54%
Hard
16/ 15%

Top problems at Infosys

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Maximum Good Subtree ScoreHARD
0.0
02Two SumEASY
100.0
03Find Building Where Alice and Bob Can MeetHARD
94.9
04Minimum Reverse OperationsHARD
93.0
05Count the Number of Ideal ArraysHARD
90.9
06Transform Array by ParityEASY
88.6
07Eat Pizzas!MEDIUM
88.6
08Longest Substring Without Repeating CharactersMEDIUM
88.6
09Maximum Sum of Subsequence With Non-adjacent ElementsHARD
88.6
10Maximize the Minimum Game ScoreHARD
86.1
11Best Time to Buy and Sell StockEASY
86.1
12Valid ParenthesesEASY
86.1
13Find the Number of Subsequences With Equal GCDHARD
86.1
14Determine the Minimum Sum of a k-avoiding ArrayMEDIUM
86.1
15Largest Number After Mutating SubstringMEDIUM
86.1
16Minimum Total Distance TraveledHARD
86.1
17Maximum Product After K IncrementsMEDIUM
86.1
18Maximum Segment Sum After RemovalsHARD
86.1
19Longest Well-Performing IntervalMEDIUM
86.1
20Sort the PeopleEASY
86.1
21The Number of Beautiful SubsetsMEDIUM
86.1
22Number of Beautiful Integers in the RangeHARD
86.1
23Maximum Number of Consecutive Values You Can MakeMEDIUM
86.1
24Can Convert String in K MovesMEDIUM
86.1
25Minimum Addition to Make Integer BeautifulMEDIUM
86.1
26Stone Game VIIIHARD
86.1
27Find the Minimum Possible Sum of a Beautiful ArrayMEDIUM
86.1
28Number of Nodes With Value OneMEDIUM
86.1
29Merge Sorted ArrayEASY
80.2
30Next PermutationMEDIUM
80.2
31Palindrome NumberEASY
76.7
32Remove Duplicates from Sorted ArrayEASY
76.7
33Maximum SubarrayMEDIUM
76.7
34Reverse StringEASY
72.7
35Valid AnagramEASY
67.9
36Second Highest SalaryMEDIUM
67.9
37Rotate ImageMEDIUM
67.9
38Trapping Rain WaterHARD
67.9
39Product of Array Except SelfMEDIUM
67.9
40Longest Common PrefixEASY
67.9
41Merge IntervalsMEDIUM
62.1
42Generate ParenthesesMEDIUM
62.1
43Spiral MatrixMEDIUM
62.1
44Rotate ArrayMEDIUM
62.1
45Coin ChangeMEDIUM
62.1
46Reverse IntegerMEDIUM
62.1
473SumMEDIUM
62.1
48Fibonacci NumberEASY
62.1
49Group AnagramsMEDIUM
62.1
50Move ZeroesEASY
54.6

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Infosys OA. The proctor cannot see it. Screen share cannot detect it. Built by an engineer at a top-10 tech company who can solve these problems cold but didn't want to trust himself in a 90-minute screen share.

Get StealthCoder
Topic distribution
What this means

Arrays aren't just common at Infosys, they're the backbone of this interview. 59 percent of all problems touch arrays, and that concentration forces you to think in terms of indices, iteration order, and in-place modifications before anything else. Strings and dynamic programming tie at 22 problems each, but DP mostly pairs with arrays, so drilling array-DP hybrids (like 'Maximum Sum of Subsequence With Non-adjacent Elements') pays double. Two-pointers and hash-tables round out the top six and handle the medium-difficulty sweet spot. Math appears frequently enough (22 times) that you can't skip it, but it's rarely the only tag on a problem. Hard problems here cluster around BFS, segment trees, and bitmask DP, which are lower-frequency gambles. Your prep order: arrays and two-pointers for two days, strings and DP for one day, then hash-table pattern work. Math and greedy slot in as you have time. On the live OA, if you blank on a tricky BFS or combinatorics problem, StealthCoder is your hedge.

Companies with similar patterns

If you prepped for Infosys, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Infosys.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Built by an engineer at a top-10 tech company who can solve these problems cold but didn't want to trust himself in a 90-minute screen share. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Infosys interview FAQ

How many array problems should I solve before the Infosys OA?+

At least 15 to 20. Arrays appear in 59 percent of their 105-problem dataset, so skipping them guarantees you'll stall mid-interview. Focus on two-pointer variants, sliding windows, and index manipulation. Skim hash-table patterns for Two Sum and Longest Substring Without Repeating Characters too.

Is dynamic programming essential for Infosys?+

Yes, but conditional. 22 problems involve DP, and it often stacks with arrays. You don't need to master memoization or combinatorics from scratch, but drill array-DP problems like Maximum Sum of Subsequence. Skip the hard DP-plus-number-theory problems unless you have three days left to prep.

What should I study first for an Infosys assessment?+

Array patterns and two-pointer logic come first. Together they cover 81 problems across the difficulty range. Spend your first session on Two Sum, Transform Array by Parity, and sliding-window substring problems. Strings matter (24 problems) but are secondary to arrays.

Are hard problems a trap for Infosys prep?+

Partially. 16 out of 105 problems are hard, and they lean heavily into segment trees, BFS, and bitmask DP. If you have a week or less, skip them. Those belong in week-two refinement, not day-before cramming. Medium-difficulty array and DP problems are better bang for your time.

How do I handle Infosys problems I've never seen before?+

Map the problem to a known pattern first. Array, string, hash-table, or two-pointer usually covers it. If you blank on the approach during the actual OA, that's where a real-time solution tool becomes critical. You'll have working code in 30 seconds instead of burning 15 minutes.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Infosys. StealthCoder is not affiliated with Infosys.