Campus test pattern

Infosys placement test pattern: what Infosys publishes (HackWithInfy), what it does not, and how to prepare

11 min read Updated English

The Infosys placement test pattern is only partly public. Infosys officially publishes the format of HackWithInfy, its coding contest that can lead to pre-placement interviews for the Specialist Programmer role: individual 3-hour coding rounds, usually 3 problems of rising difficulty, with sectional and total cut-offs. Infosys does not publish a section-wise pattern, question count or duration for its regular fresher hiring test, so this guide does not invent one. Below you get the official HackWithInfy details, the Infosys graduate programmes, and an honest preparation plan for both routes, with free ExamPilot tests.

Take a timed test

What Infosys publishes, and what it does not

QuestionOfficial answer
Regular fresher test pattern (sections, questions, time)Not published on infosys.com
HackWithInfy formatPublished: Round 1 and Round 2 are 3-hour individual coding assessments; top 100 go to a 4-day team Grand Finale
HackWithInfy problemsPreparatory guidance: usually 3 problems in 3 hours, easy, medium (usually greedy) and hard (usually dynamic programming)
Languages allowed in HackWithInfyC, C++, Java, Python and JavaScript
Cut-offsSectional and total cut-offs exist; the values are never published
Specialist Programmer payNot published by Infosys
FeeHackWithInfy participation is free; there is no registration fee

Be wary of exact Infosys patterns online

Many websites print an Infosys test with fixed sections, question counts and minutes. Infosys does not publish those numbers, and company tests change every cycle. Use such lists only as a rough idea of topics, and rely on the instructions in your own test invitation.

Infosys routes for graduates

Infosys's Graduates careers page lists five exclusive programmes. Knowing which one you are entering tells you what kind of test to expect.

ProgrammeHow Infosys describes itTest you should prepare for
HackWithInfyCoding competitionTimed algorithmic coding (official format below)
Power ProgrammersExclusive coding unitStrong data structures, algorithms and code quality
InfyTQLearning and engagement platformProgramming fundamentals, as offered on the platform
IngeniousBusiness management contestBusiness thinking rather than coding
InternshipsInternship opportunitiesDepends on the internship role

For regular fresher roles such as Systems Engineer, Infosys does not publish the test structure on its careers pages, so prepare the broad fresher aptitude and programming base described in the plan below and read the instructions that arrive with your invitation.

HackWithInfy test pattern (official)

StageFormatWho moves on
Round 13-hour coding assessment, taken individually on the Infosys Assessment Platform (IAP)Those who clear Round 1
Round 23-hour coding assessment for Round 1 qualifiers, taken individuallyTop 100 participants
Grand Finale4-day event including the hackathon; team-based, with teams decided by InfosysWinners and pre-placement interview chances
ProblemDifficultyWhat Infosys's guidance says it tests
Problem 1EasyBasic aptitude, algorithms and data structures
Problem 2MediumUsually greedy algorithms: pure, orthogonal and relaxed greedy
Problem 3HardUsually dynamic programming: overlapping subproblems, optimal substructure, top-down memoisation and bottom-up tabulation

The finale shortlist is drawn on overall score and/or a sectional cut-off, the number of test cases passed and the efficiency of your code. That last point matters: a brute-force solution that passes small cases but times out on large ones scores less. The official 2026 sample questions are full problems with input format, constraints such as n up to 10 to the power 5 and values up to 10 to the power 9, and several sample test cases, labelled by difficulty.

Round 2 mode

Infosys's HackWithInfy page calls Round 2 a face-to-face contest, while the 2026 terms say both rounds are hosted on the Infosys Assessment Platform and ask for a stable internet connection. Treat Round 2 as a 3-hour coding assessment and follow the mode Infosys states in your round invitation.

HackWithInfy 2026: eligibility, registration and timeline

RuleHackWithInfy 2026 (official terms)
DegreesB.E., B.Tech, M.E., M.Tech, Dual Degree, MS (Research), MCA or 5-year integrated MSc
Graduating year2027
Age and residence18 or older and resident in India
How to registerThrough your college placement officer, followed by an Infosys survey form
FeeFree

Registration for HackWithInfy 2026 commenced on 6 February 2026. Infosys's published timeline put preparation (the Starting Block) in January to March 2026. Round 1, a virtual contest, was scheduled for March 2026. Round 2 was scheduled for April 2026. The 4-day Grand Finale was scheduled for November 2026.

As of 25 November 2026 we found nothing official on the next edition. If the pattern of past cycles holds, it would target the next graduating batch, but wait for Infosys to announce it through placement officers and the HackWithInfy page.

Rewards listed by Infosys include a chance of pre-placement interview opportunities for the Specialist Programmer role and other roles in its specialised units, internships, mentorship, an individual Champion of Champions award, and cash prizes for the top three teams. As of January 2026, the team prizes were USD 3,300, 1,650 and 1,100. Note the word chance: Infosys does not promise a PPI to every finalist.

Practice problems in the HackWithInfy style, with approaches

These are original problems at the three difficulty levels Infosys describes. Read each approach, then code it yourself with your own test cases before reading the next.

Easy: Given n integers (n up to 10 to the 5) and a target k, count the pairs i less than j whose values add up to k.

Checking every pair is O(n squared), about 5 times 10 to the 9 operations, which will time out. Instead, walk through the array once with a hash map of counts seen so far. For each value x, add the count of k minus x already in the map, then increment the count of x. This counts each pair exactly once in O(n) time. Use a 64-bit counter, because the answer can exceed the 32-bit range when many values repeat.

Always check the constraints first; they tell you the complexity you need.

Medium (greedy): You have meetings with start and end times. Choose the most meetings that do not overlap.

Sort meetings by end time. Pick the first meeting, then keep picking the next meeting whose start is at least the end of the last one picked. Choosing the earliest finishing meeting always leaves the most room for the rest, which is why the greedy choice is safe here; you can prove it by exchanging any optimal first choice with the earliest-ending meeting. Sorting costs O(n log n) and the scan is O(n).

In an interview, say why the greedy choice is correct, not just that it works.

Hard (dynamic programming): Given item weights and values and a bag of capacity W, find the maximum value without exceeding W, using each item at most once.

This is the 0/1 knapsack, which Infosys's guidance names as a typical DP problem. Let dp of w be the best value with capacity w. For each item, loop w from W down to the item's weight and set dp of w to the larger of dp of w and dp of w minus weight plus value. Looping downward stops an item being used twice. Time is O(n times W) and memory O(W). If W is huge but values are small, switch the DP to minimum weight for each total value.

Explain the state, the transition and the loop direction; that is what the panel probes.

Hard (dynamic programming): Find the length of the longest palindromic subsequence of a string of length up to 2000.

Let dp of i and j be the answer for the substring from i to j. If the characters at i and j match, dp of i and j is 2 plus dp of i plus 1 and j minus 1; otherwise it is the larger of dp of i plus 1 and j, and dp of i and j minus 1. Single characters have value 1. Fill by increasing length. That is O(n squared) time, about 4 million steps for n of 2000, which is fast. It also equals the longest common subsequence of the string and its reverse.

Mention the LCS link; showing two views of one problem impresses.

A 10-week plan for Infosys tests

  1. 1

    Week 1: baseline both skills

    Take Campus Placement Aptitude Mock Test 1 for the regular route and solve one easy and one medium problem with a 3-hour timer for HackWithInfy. Write down where time went.

  2. 2

    Weeks 1 to 3: one language and the basics

    Choose one of C, C++, Java, Python or JavaScript. Master fast input, arrays, strings, sorting with comparators, hash maps and 64-bit integers. Test yourself with Data Structures and Algorithms Basics.

  3. 3

    Weeks 4 and 5: greedy

    Interval scheduling, minimum platforms, job sequencing, fractional knapsack and sorting-based problems. For each, write one line on why greedy is correct.

  4. 4

    Weeks 6 to 8: dynamic programming

    Start with Fibonacci and climbing stairs, then knapsack, longest common subsequence and substring, palindromic subsequence, coin change and grid paths. Infosys's guidance also names Dijkstra's algorithm among its examples, so learn it with a priority queue.

  5. 5

    Weeks 2 to 9: aptitude and CS in parallel

    Three times a week, take a 25-question set from the Placement Quantitative Aptitude Test, the Placement Logical Reasoning Test or the Placement Verbal Ability Test. Add Pseudocode and Output Prediction weekly.

  6. 6

    Week 10: full rehearsals

    Two 3-hour sessions with three unseen problems each, easy then medium then hard, plus Campus Placement Aptitude Mock Test 2. Prepare to explain every solution aloud.

Pace for a 3-problem, 3-hour round

A sensible split is about 30 minutes for the easy problem, 60 for the medium and 90 for the hard. Because sectional cut-offs exist, secure full marks on the easy problem before chasing the hard one, and submit partial solutions that pass some test cases rather than nothing.

The Infosys interview and what our AI panel checks

Whether you come through HackWithInfy or the regular campus route, the interview tests whether you understand your own code and your projects. On ExamPilot, the AI panel asks you to explain a solution, changes a constraint to see if you adapt, and checks that you state complexity correctly and stay composed. Rehearse these aloud.

Your solution to the hard problem used DP. Why not recursion alone?

Plain recursion recomputed the same subproblems again and again. For the palindromic subsequence problem, the substring from index 3 to 9 was being solved from many different parents, which made it exponential. I stored each result in a 2D table, so every pair i and j is solved once. That brought it to O(n squared) time and memory. With n up to 2000 that is about 4 million cells, roughly 16 MB with integers, which was within the limit.

Name the overlapping subproblem concretely, then give time and memory.

Tell me about a project where you wrote most of the code.

In my third year at a college in Mysuru I built a bus-pass renewal app for our campus in Java with Spring Boot and MySQL. I wrote the renewal API, the fee calculation and the admin report. The tricky part was duplicate renewals when students clicked twice, so I added a unique constraint on student and month and handled the exception cleanly. About 400 students used it in the first month, and renewal queues at the office dropped noticeably.

One concrete bug you fixed is worth more than a list of technologies.

Frequently asked questions

What is the Infosys placement test pattern?
Infosys does not publish a section-wise pattern, question count or duration for its regular fresher test. What it does publish is the HackWithInfy format: individual 3-hour coding rounds, usually 3 problems of easy, medium (greedy) and hard (dynamic programming) difficulty, with sectional and total cut-offs. For the regular route, prepare aptitude, verbal, reasoning and programming basics, and follow your invitation's instructions.
What is HackWithInfy and who can take it?
HackWithInfy is Infosys's coding competition. The 2026 edition was open to B.E., B.Tech, M.E., M.Tech, Dual Degree, MS (Research), MCA and 5-year integrated MSc students graduating in 2027, aged 18 or older and resident in India. Registration was free and went through the college placement officer.
Which programming languages are allowed in HackWithInfy?
Infosys's preparatory guidance lists C, C++, Java, Python and JavaScript. Choose the one you are fastest and most accurate in. For heavy constraints, C++ and Java tend to run faster, but a well-designed algorithm in Python usually matters more than the language.
Does HackWithInfy guarantee a job at Infosys?
No. Infosys lists a chance of pre-placement interview opportunities for the Specialist Programmer role and other roles in its specialised units, plus internships, mentorship and prizes. A PPI is an interview, not an offer, so prepare to explain your code and projects in depth.
What are the HackWithInfy cut-off marks?
Infosys confirms that sectional and total cut-offs exist and that finale selection uses overall score and/or a sectional cut-off, test cases passed and code efficiency. It does not publish the cut-off values, so any number you see online is a guess.
What is the Infosys Specialist Programmer salary?
Infosys does not publish Specialist Programmer or Power Programmer compensation on its careers pages, so this guide does not quote a figure. If you receive an offer, the letter states the CTC and its components.
Is there negative marking in the Infosys test?
Infosys does not state a marking scheme for its regular fresher test, and HackWithInfy is scored by test cases passed and code efficiency rather than right or wrong options. Read the instructions on your test screen; if they do not mention a penalty, attempt every question.

Practise out loud

Practise the Infosys interview

An AI panel asks you to explain your code and projects, changes constraints to test your thinking, and scores your technical and HR answers.

TCS / Infosys / Wipro / Accenture · Infosys — Systems Engineer, DSE & Specialist Programmer

Read how this interview works

Official sources