Infosys interview practice

Infosys interview questions

55 questions; coding questions sorted by reports.

FastPrep has 50 coding questions tagged Infosys, plus 4 system design and 1 low-level design questions. Filter them by interview stage and open any one to practice it.

Questions
55 (50 coding, 5 design and project)
By stage
Online Assessment 25 · Phone Screen 2 · Onsite 23
Updated

Question list

All 50 Infosys coding questions

Sorted by how many times each question was reported. Pick a stage to see only its questions.

Showing 50 of 50 Infosys questions.

QuestionDifficultyStageReports
At Most K Jumps with Quadratic Transition CostArrayDynamic ProgrammingHardOA2 reports · last Nov 2026
Minimum Coins for a TargetDynamic ProgrammingMediumOnsite2 reports · last Nov 2026
Tenth-Highest Distinct SalaryDatabaseMediumOnsite2 reports · last Oct 2026
Hiking Club Fastest PaceGreedySortingMediumOA1 report · last Nov 2026
Lowest Common Ancestor with a Changing RootTreeGraphHardOA1 report · last Nov 2026
Minimum Leaf Path Sum over All RootsTreeGraphHardOA1 report · last Nov 2026
Split Array to Minimize the Largest SumArrayBinary SearchHardOA1 report · last Nov 2026
Cherry PickupArrayDynamic ProgrammingHardOA1 report · last Nov 2026
Delete Duplicate Employee RecordsDatabaseEasyOnsite1 report · last Nov 2026
Find Duplicate Employee RecordsDatabaseEasyOnsite1 report · last Nov 2026
Lexicographically Smallest Grid Path with One Letter ChangeStringDynamic ProgrammingHardOA1 report · last Nov 2026
Minimum Cost to Supply Water with Wells and PipesGraphUnion FindHardOA1 report · last Nov 2026
Minimum Cost to Tile a Strip with Widths 1, 2, and 3ArrayDynamic ProgrammingMediumOA1 report · last Nov 2026
Minimum Insertion Steps to Make a String PalindromeStringDynamic ProgrammingHardOnsite1 report · last Nov 2026
Minimum Rounds to Complete All TasksArrayHash TableMediumOA1 report · last Nov 2026
Lift Total TravelSimulationArrayEasyOA1 report · last Nov 2026
Swap Two Gender ValuesDatabaseEasyPhone1 report · last Oct 2026
Count Equal-Distinct Character PartitionsDynamic ProgrammingSliding WindowHardOA1 report · last Oct 2026
Maximize the Even-Odd Index Product GapArrayMathMediumOnsite1 report · last Oct 2026
Maximum Alternating-Index Packet ValueGreedySortingMediumOA1 report · last Oct 2026
Minimum Nonadjacent Flips for an Alternating Binary StringStringGreedyMediumOnsite1 report · last Oct 2026
Usable Water with Contaminated PillarsTwo PointersArrayMediumOA1 report · last Oct 2026
Second-Highest Distinct SalaryDatabaseEasyPhone1 report · last Sep 2026
Count Reachable Values by Halving and DecrementingBreadth-First SearchHash TableMediumOA1 report · last Sep 2026
Minimum Paid Swaps to Group Ones and TwosArrayGreedyMediumOA1 report · last Sep 2026
Assign Cookies With Matching ParityArrayGreedyMediumOnsite1 report · last Sep 2026
Count Equal Code Pairs Within Distance KArrayHash TableMediumOnsite1 report · last Sep 2026
Daily Successful Transactions Per DepartmentDatabaseEasyOnsite1 report · last Sep 2026
Detect Substring In Any RotationStringEasyOnsite1 report · last Sep 2026
Enumerate All SubsequencesStringBacktrackingMediumOnsite1 report · last Sep 2026
Longest Substring Without Repeating CharactersStringSliding WindowMediumOnsite1 report · last Sep 2026
Product Of Array Except SelfArrayPrefix SumMediumOnsite1 report · last Sep 2026
Filter Excel Employee Records with PandasDatabaseEasyOnsite1 report · last Sep 2026
Maximum Purchases with a Cooler-Bag FeeArrayGreedyMediumOA1 report · last Aug 2026
Sort ColorsArraySortingMediumOnsite1 report · last Aug 2026
Top K Frequent ElementsArrayHash TableMediumOnsite1 report · last Aug 2026
Top-K Salaries Per DepartmentDatabaseMediumOnsite1 report · last Aug 2026
Swap Two Numbers Without a Third VariableBit ManipulationEasyOnsite1 report · last Aug 2026
Count Valid A-B-C Sequences Under a Modulo-Four RuleDynamic ProgrammingMathHardOA1 report · last Aug 2026
Maximum Product of a Strictly Increasing Contiguous SubarrayArrayDynamic ProgrammingMediumOA1 report · last Aug 2026
Minimum Cost to Assign Candidates to Two CitiesArrayGreedyMediumOA1 report · last Aug 2026
Merge Two Sorted Arrays In PlaceArraySortingHardOnsite1 report · last Jul 2026
Sort Sentence WordsStringSortingEasyOnsite1 report · last Jul 2026
Minimum Path Sum With Grid SwitchesUnratedOnsite1 report · last May 2026
Maximum Subarray Sum After SwapsUnratedOA1 report · last Feb 2026
Null-Safe Full NameDatabaseEasyOnsite1 report · last Jan 2026
Find Number of Good Subsequences 🍅Dynamic ProgrammingCombinatoricsHardOA1 report · last Apr 2024
Number of Unique Elements After Modifications 🍁ArrayPrefix SumMediumOA1 report · last Mar 2024
Obtain Maximum Score Using Minimum SwapsGreedySortingMediumOA1 report · last Feb 2024
Extract CardsGreedyArrayHardOA1 report · last Feb 2024

At a glance

Infosys interview process

FastPrep has 50 Infosys coding interview questions: 25 questions from the online assessment (OA), 2 questions from phone screens and 23 questions from onsite rounds. By difficulty: 24 medium, 13 hard and 11 easy. The most common topics are Array, Greedy, Dynamic Programming, Database and Sorting. The latest report is from Nov 2026.

  • Online Assessment

    25 questions · 12 medium, 11 hard and 1 easy

    Topics: Array, Greedy and Dynamic Programming

    Latest report: Nov 2026

  • Phone Screen

    2 questions · 2 easy

    Topics: Database

    Latest report: Oct 2026

  • Onsite

    23 questions · 12 medium, 8 easy and 2 hard

    Topics: Array, Database and String

    Latest report: Nov 2026

By stage and level

Infosys questions by stage and level

01 · Preparation plan

Progress from array invariants to constrained counting.

The Infosys set supports a gradual move from basic array operations to optimization and counting. Keep the general programming intent distinct from named recruitment programs: a company tag does not prove that an exercise belongs to a particular test version or specialist hiring track. This is a suggested practice order, not Infosys's interview process. Your invitation and recruiter come first.

  1. 01

    Maintain three array regions

    Sort Colors is a focused invariant exercise: describe which regions are complete and which remain unclassified before moving a pointer.

    • Test one color and alternating colors.
    • Do not skip an unexamined swapped value.
    • Explain the constant-space requirement.
    Practice: Sort Colors
  2. 02

    Compare assignment differences

    Use two-city assignment to reason about opportunity cost. The useful comparison is not each absolute cost but the cost of changing a candidate's destination.

    • State the required capacity of each city.
    • Test equal cost differences.
    • Prove why the chosen ordering minimizes total cost.
    Practice: Minimum Cost to Assign Candidates to Two Cities
  3. 03

    Compress history into remainder states

    The A-B-C sequence exercise is a way to practice counting under modular restrictions without enumerating every sequence.

    • Define the state and legal transitions.
    • Check short sequences by hand.
    • Distinguish the rule's modulus from the answer modulus.
    Practice: Count Valid A-B-C Sequences Under a Modulo-Four Rule

02 · Design and project questions

5 Infosys design and project questions

Beyond coding questions, FastPrep has 4 system design and 1 low-level design questions tagged Infosys.

System designLast reported Nov 2026

Durable Messaging Chat System

Design a reliable text-chat service for one-to-one and group conversations.

Practice
Low-level designLast reported Nov 2026

Design and Implement a Parking Lot

Model a parking journey and implement the allocation and release core safely.

Practice
System designLast reported Oct 2026

Design Ride-Hailing Dispatch and Trip Lifecycle

Design the data model and regional services that match riders with nearby drivers while preserving a single active assignment.

Practice
System designLast reported Oct 2026

Design a Million-Domain Blocking Service

Distribute and evaluate a million-domain block policy with fast decisions, bounded staleness, and safe cache updates.

Practice
System designLast reported Aug 2026

Design Offline-First Document Autosave and Synchronization

Design a browser-based autosave system that preserves edits offline, synchronizes them safely after reconnect, and resolves concurrent changes without silent data loss.

Practice

03 · About these questions

Where these Infosys questions come from

Each question on this page is tagged Infosys in FastPrep's problem bank. The report count and month show how often and how recently it was reported from Infosys interviews.

Past reports help you choose what to practice first. They can't tell you which questions, format or platform your own interview will use.

  • Only questions tagged Infosys appear on this page.
  • Each coding question shows its stage and last report date when known.
  • These are not official, private or leaked Infosys questions.

04 · FAQ

Infosys interview questions: FAQ

For hiring news and timelines, see the Infosys hiring insights page.

01What are the stages of the Infosys interview?

The 50 Infosys coding questions on FastPrep come from the online assessment (25 questions), phone screens (2 questions) and onsite rounds (23 questions). Stages differ by role, level and date, so check your invitation for your own process.

02What does the Infosys OA look like?

25 of the 50 Infosys coding questions on FastPrep come from the online assessment. By difficulty: 12 medium, 11 hard and 1 easy. Common OA topics: Array, Greedy and Dynamic Programming. The latest OA report is from Nov 2026.

03How hard is the Infosys interview?

By difficulty, the 48 rated questions are 24 medium, 13 hard and 11 easy.

04What topics come up in Infosys coding interviews?

Across 50 Infosys coding questions, the most common topics are Array (20 questions), Greedy (13 questions), Dynamic Programming (12 questions), Database (9 questions) and Sorting (9 questions).

05What are the most asked Infosys interview questions?

The most reported questions are “At Most K Jumps with Quadratic Transition Cost” (2 reports), “Minimum Coins for a Target” (2 reports) and “Tenth-Highest Distinct Salary” (2 reports).

06Is this an exact Infosys recruitment-test question bank?

No. These are public company-tagged practice assets. They do not establish a current test's question order, scoring, duration, or program-specific syllabus. Use them to strengthen implementation and reasoning, then follow the official instructions for the particular Infosys role or recruitment program you entered.

07Is FastPrep affiliated with Infosys?

No. FastPrep is an independent interview prep site and is not affiliated with Infosys. These are practice questions from FastPrep's problem bank, not official, private or leaked Infosys questions.

08How do you know which stage a Infosys question is from?

Each question's stage comes from the reports behind it. A question can be reported from more than one stage, and the process can change by role, level, location and year, so treat the stage as a guide, not a promise.

09Which Infosys interview stage should I practice first?

The stage named in your invitation or recruiter message. If you don't know the stage yet, start with the stage that has the most questions, then practice explaining and testing your code out loud.

10Can this page tell me exactly what my Infosys interview will ask?

No. Report counts, stages and dates show what came up before and help you choose what to practice first. They can't predict the questions, order, timing or platform of your own interview.

Next step

Pick a question. Solve it end to end.

Start with the stage named in your invitation. Past reports show what came up before, not what you will be asked.

Back to the question list