Skip to main content
Back to Companies
Infosys logo

Infosys Interview Questions (185)

Practice real interview problems from Infosys

#1

Two Sum

Easy✓ Solution📹 Video
Accenture+126
#2

Add Two Numbers

Medium✓ Solution📹 Video
Accenture+36
#6

Zigzag Conversion

Medium✓ Solution📹 Video
Amazon+18
#7

Reverse Integer

Medium✓ Solution📹 Video
Accenture+21
#8

String to Integer (atoi)

Medium✓ Solution📹 Video
Accenture+20
#9

Palindrome Number

Easy✓ Solution📹 Video
Accenture+31
#11

Container With Most Water

Medium✓ Solution📹 Video
Accenture+57
#12

Integer to Roman

Medium✓ Solution📹 Video
Accenture+30
#13

Roman to Integer

Easy✓ Solution📹 Video
Accenture+35
#14

Longest Common Prefix

Easy✓ Solution📹 Video
Accenture+59
#15

3Sum

Medium✓ Solution📹 Video
Accenture+56
#18

4Sum

Mediumâś“ Solution
Accenture+19
#20

Valid Parentheses

Easy✓ Solution📹 Video
Accenture+112
#21

Merge Two Sorted Lists

Easy✓ Solution📹 Video
Accenture+35
#22

Generate Parentheses

Medium✓ Solution📹 Video
Accenture+39
#31

Next Permutation

Medium✓ Solution📹 Video
Accenture+31
#35

Search Insert Position

Easy✓ Solution📹 Video
Accenture+11
#46

Permutations

Mediumâś“ Solution
Agoda+24
#48

Rotate Image

Mediumâś“ Solution
Accenture+35
#49

Group Anagrams

Medium✓ Solution📹 Video
Accolite+86
#50

Pow(x, n)

Medium✓ Solution📹 Video
Accenture+21
#51

N-Queens

Hardâś“ Solution
Accenture+15
#54

Spiral Matrix

Mediumâś“ Solution
Accenture+49
#55

Jump Game

Medium✓ Solution📹 Video
Adobe+32
#56

Merge Intervals

Medium✓ Solution📹 Video
Accenture+111
#64

Minimum Path Sum

Medium✓ Solution📹 Video
Amazon+16
#69

Sqrt(x)

Easy✓ Solution📹 Video
Amazon+16
#70

Climbing Stairs

Easy✓ Solution📹 Video
Accenture+36
#72

Edit Distance

Medium✓ Solution📹 Video
Amazon+23
#73

Set Matrix Zeroes

Medium✓ Solution📹 Video
Amazon+21
#75

Sort Colors

Medium✓ Solution📹 Video
Agoda+36
#77

Combinations

Medium✓ Solution📹 Video
Amazon+7
#78

Subsets

Medium✓ Solution📹 Video
Agoda+20
Page 1 of 4

About Infosys Coding Interviews

Infosys is one of the largest global IT services and consulting companies, known for hiring strong problem solvers who can write clean, efficient code and think logically under pressure. Whether you are applying through campus placements or lateral hiring, the Infosys coding interview focuses heavily on core data structures, algorithmic thinking, and the ability to explain your approach clearly.

The interview process usually begins with an online coding assessment followed by one or more technical interview rounds. Candidates are expected to demonstrate solid knowledge of fundamental DSA topics rather than extremely complex algorithms. Most Infosys interview questions test how well you understand common patterns and whether you can implement them correctly.

From analyzing hundreds of real interview experiences, Infosys commonly focuses on:

  • Arrays and strings – searching, sorting, and transformation problems
  • Hashing and sets for efficient lookups
  • Linked lists and stacks for data manipulation
  • Recursion and basic dynamic programming
  • Greedy and two‑pointer techniques

The overall difficulty level is usually easy to medium, but the challenge comes from writing bug‑free code within time limits and clearly explaining your logic during technical discussions.

FleetCode helps you prepare efficiently with a curated set of 158 real Infosys interview questions collected from past candidates. Problems are organized by difficulty and topic so you can systematically cover the patterns that appear most often in Infosys coding interviews. Each problem includes detailed solutions in Python, Java, and C++, helping you strengthen both problem‑solving skills and implementation speed.

If your goal is to crack an Infosys coding round, practicing these targeted questions will help you recognize patterns faster and approach interviews with confidence.

Interview Tips for Infosys

Understanding the Infosys interview format is key to preparing effectively. While the exact structure may vary slightly between campus and experienced hiring, most candidates go through the following stages.

  • Online Assessment (60–120 minutes): Usually includes 2–3 coding questions along with aptitude or logical reasoning sections. Coding problems are typically easy to medium difficulty.
  • Technical Interview Round: Focuses on data structures, coding logic, and sometimes basic database or OOP concepts. You may be asked to write code on a shared editor or explain your approach step by step.
  • Managerial or HR Round: Evaluates communication skills, project experience, and problem‑solving mindset.

Based on real interview reports, the most common DSA categories asked in Infosys coding interviews include:

  • Arrays and string manipulation
  • Hash maps and frequency counting
  • Two‑pointer and sliding window techniques
  • Linked list operations
  • Basic recursion and dynamic programming
  • Sorting and searching algorithms

Preparation strategy:

  • Start by mastering array and string problems since they appear in a large portion of Infosys interviews.
  • Practice implementing solutions without relying heavily on library shortcuts so you understand the underlying logic.
  • Time yourself when solving problems to simulate the pressure of the online assessment.
  • After solving each problem, review optimized approaches and analyze time and space complexity.

Common mistakes candidates make:

  • Ignoring edge cases such as empty arrays or duplicate values
  • Writing code without explaining the approach clearly
  • Focusing only on difficult problems instead of mastering fundamentals

For most candidates, 4–6 weeks of focused practice on targeted Infosys interview questions is enough to build confidence. Aim to solve 2–3 problems daily, review patterns regularly, and simulate mock interviews. Consistent practice on real questions—like the curated set available on FleetCode—greatly increases your chances of clearing the Infosys coding interview.