HackWithInfy is a highly competitive programming competition organised by Infosys, one of the largest IT companies in India. The competition aims to provide a platform for aspiring software developers to showcase their skills and get an opportunity to work with Infosys.

The HackWithInfy exam is a comprehensive test assessing the participant’s technical skills in data structures, algorithms, programming languages, and problem-solving. The exam is open to students, fresh graduates, and working professionals looking to build a career in the IT industry.

In this article, we provide a complete guide to the HackWithInfy competition 2023. It covers information on the eligibility criteria, dates, syllabus, common questions, results and more. The article is intended to be a one-stop resource for all participants and aims to answer all questions about the competition.

Why Participate in HackWithInfy?


Prize Money

  • First Place: INR 200,000
  • Second Place: INR 100,000
  • Third Place: INR 50,000

Kickstart Your Career

A chance to secure a full-time job with Infosys as

  • A Power Programmer with a salary of INR 8,32,198 per annum.
  • Digital System Engineer with a salary of INR 6,32,198 per annum.
  • System Engineer Specialist with a salary of INR 5,19,198 per annum.

Other Opportunities 

  • Pre-placement interview opportunities for niche technical roles at Infosys.
  • A chance to secure paid internships.
  • A chance to become a Campus Ambassador.

Background of HackWithInfy 

HackWithInfy dates back to 2018 when it was first launched as a coding competition for engineering students. Over the years, the competition has gained popularity among students and has become a widely-recognised platform for showcasing their skills and competing with their peers. The competition’s top performers are also given an opportunity to work with Infosys, further providing them with the exposure they need to develop their skills and pursue their careers in the tech industry.

HackWithInfy is organised by Infosys, a global leader in next-generation digital services and consulting. With a mission to create the next opportunity for people, businesses, and communities and amplify human potential, Infosys has been at the forefront of digital transformation for over three decades. The company’s expertise and experience in technology, innovation, and problem-solving are evident in the design of HackWithInfy, aimed at nurturing young talent in the field of programming and software development.

By providing a platform for students to showcase their skills, Infosys seeks to identify and support the next generation of tech leaders and innovators.

HackWithInfy 2023 Registration and Eligibility


To participate in HackWithInfy, all students from colleges, universities, and institutes in India are welcome to join!

The registration process is simple and can be done through InfyTQ, Infosys’ learning and engagement platform for engineering students in India.

If you already have an InfyTQ account, simply click on the HackWithInfy program banner on the InfyTQ homepage to register. If you’re new to InfyTQ, simply visit the website to create an account and sign up for HackWithInfy.

Eligibility Criteria of HackWithInfy 

  • Must be 18 years or older and a resident of India at the time of registration.
  • Must be a B.E./ B. Tech/ M.E./ M. Tech student.
  • A minimum percentage of 60% or 6.5 CGPA in all academic records from 10th, 12th, UG, or PG.
  • The company may request proof of eligibility for verification.
  • Participants can only register through a single InfyTQ account.
  • Registration is free and can be done through InfyTQ, available on Google Play Store, iOS App Store, or the InfyTQ website.
  • Multiple registrations through different InfyTQ accounts will be disqualified.
  • No active backlogs.

Ensure your computer meets these system requirements before taking the online test:

  • i3 Core processor or higher.
  • 4GB RAM minimum.
  • Working webcam.
  • Google Chrome browser version 70 or higher with pop-up blocker disabled.
  • Stable internet connection (2 Mbps download, 1 Mbps upload speed).
  • Uninterrupted power supply during the test.
  • Check system readiness by clicking here.

Selection Process of HackWithInfy


HackWithInfy consists of two rounds and an interview:

  1. Round 1: May 5, 7, and 9, 2023: Online individual challenge on Infosys Assessment Platform (IAP).
  2. Round 2: July 2 ‚Äď July 5, 2023: A 48-hour hackathon among teams and Grand Finale for the top 100 participants from Round 1.
  3. Winners from Round 2 will qualify for the interviews.

Round 1 will be hosted on the IAP and evaluated by the judging panel based on the following criteria:

  • Code efficiency and the number of test cases passed.
  • The difficulty level of the questions and evaluation of solutions.
  • Negative marking for plagiarism.

Round 2 will be a team-based hackathon, and the top 100 finalists from Round 1 will participate in the Grand Finale. The finalists will also receive opportunities for pre-placement interviews and internships for niche technical roles at Infosys.


  • Participants must register as individuals for Round 1, but participation in Round 2 may be on a team basis as determined by the company.
  • Participants who have opted for Infosys Certification Advantage Round cannot participate in Round 1, as their performance in the Advantage Round will determine their selection for the final round of HackWithInfy 2023.
  • Participants providing incomplete, false, fraudulent, forged, or tampered information will be disqualified.
  • The judging panel’s decision is final and will be communicated directly to the participants.

HackWithInfy 2023 Syllabus


Round 1: Certification Round

  • Total Number of Questions -3
  • Negative Marking: No
  • Time Allotted : 3 Hours
  • Cut-Off: 1.5-2 Questions
  • Difficulty Level- Medium-High
  1. Section I: Java/ Python Hands-on Coding: 2 Questions.
  2. Section II: Java/ Python MCQ: 10 Questions.
  3. Section III: DBMS MCQ: 10 Questions.

The syllabus for HackWithInfy is not set, but the coding questions often cover the following topics:

  • Java
    • Introduction to Programming
    • Polymorphism
    • OOP Basics
    • Arrays and String
    • Abstract, final and Interfaces
    • Recursion
  • Python
    • Introduction to Programming
    • Algorithms
    • Control Structure
    • Collection
    • Functions
    • OOPS Concept
  • InfyTQ DBMS Syllabus
    • Introduction to DBMS
    • SQL Basics
    • Joins
    • Normalisation
    • Subquery
    • Searching and Sorting
    • Transactions
    • NoSQL Databases

The top 100 finalists from round 1 will be invited to the Grand Finale, and they will get an excellent opportunity of Pre-Placement at Infosys for the role of Power Programmer.

Round 2: Grand Finale

  • No. of Questions: 1
  • Negative Marking: No
  • Time Allotted: 48-hour Hackathon
  • Difficulty Level- High

Must know topics:

  • Data Structures
  • Hashing Concepts
  • Game Theory
  • Mathematical Coding Problems

The winner will be rewarded with a prize of Rs 2 Lakh. The first runner-up will also receive a prize of 1 lakh, and the second runner-up will receive a prize mon of Rs 50,000.

Interview Round 

The Interview Round is the final stage of the selection process. Technical and HR questions will be asked during the Technical Interview. To reach this stage, candidates must clear all three previous rounds.

The Interview Round consists of two rounds:

  1. Technical Round: This round will test your technical knowledge and skills through coding questions.
  1. HR Round: This is an opportunity for the panel to evaluate your communication skills, personality, and fit for the company.

Questions can be asked on a range of topics, including but not limited to:

  • Data Structure
  • Algorithms
  • DBMS
  • Operating Systems
  • Networking
  • OOP concepts.

Technical Requirements of HackWithInfy

  1. Programming Language Proficiency
  • Strong command of the programming language you choose to code in.
  • It’s recommended to choose a language with which you’re most comfortable (C, C++, or Python).
  1. Practice Platform

Select a platform where you can regularly practice coding problems (e.g. HackerEarth, Codechef, HackerRank).

  1. Typing Speed

Good typing speed is important to save time for re-checking and modifying code.

Evaluation Criteria of HackWithInfy 2023

  • Code Effectiveness: Evaluated based on the number of test cases passed by the code.
  • Plagiarism: Strictly prohibited and will result in negative marking.
  • Difficulty Level: Questions are assigned marks based on their difficulty level, and evaluations are made accordingly.

Preparing for HackWithInfy 2023: Vital Tips


  • Brush up on Data Structures: Make sure you have a good understanding of the most commonly used data structures, such as arrays, linked lists, trees, graphs, etc.
  • Study Algorithms: Focus on algorithms like Dynamic Programming, Greedy Algorithms, Backtracking, Stack, Queue, etc.
  • Familiarise yourself with programming languages: Choose a language you are most comfortable with and practice coding in that language. Python, C, and C++ are recommended.
  • Use online platforms for practice: Platforms like HackerRank, Codeforces, HackerEarth, etc., are a great way to practice coding problems and improve your skills.
  • Time Management: Practice solving coding problems within a set time limit to improve speed and accuracy.
  • Practice Previous Year Questions: Solve previous year’s questions of HackWithInfy to get a feel of the difficulty level and type of questions asked.
  • Read Books and Online Resources: Many books and online resources are available to help you prepare for the exam. Use these resources to build a strong foundation in computer science concepts.
  • Seek Help: Don‚Äôt hesitate to seek help from your professors, mentors, or senior students.
  • Get enough sleep and exercise: Keep yourself physically and mentally healthy, as it will help you perform better during the exam.

Resources to prepare for HackWithInfy 2023

  • GeeksforGeeks
  • Leetcode
  • Codechef
  • HackerRank
  • HackerEarth
  • Books on Data Structures and Algorithms.

Detailed Preparation Strategy for HackWithInfy

  • Participate in coding competitions like CodeChef and TopCoder to get a feel of the pressure and time constraints during the actual exam.
  • Practice solving coding problems under time constraints to improve your speed and accuracy.
  • Seek feedback from seniors or mentors to identify your strengths and weaknesses and work on them.
  • Take mock tests to familiarise yourself with the type of questions that might be asked in the exam.
  • Practice coding problems on online platforms such as LeetCode, HackerRank, and GeeksforGeeks. These platforms have a wide range of questions on topics like algorithms, data structures, and more.
  • Study books like “Introduction to Algorithms” by Thomas H. Cormen, “Data Structures and Algorithms Made Easy” by Narasimha Karumanchi, and “Competitive Programming 3” by Steven Halim.
  • Make use of YouTube tutorials and video lessons to learn about the topics covered in the exam. Channels like MyCodeSchool, GeeksforGeeks, and HackerEarth have great content.
  • Utilise the practice papers and mock tests available on websites like Prepinsta and IndiaBix to get an idea of the types of questions that may be asked in the exam.
  • Brush up on core computer science concepts like OOPs, DBMS, and networking. Websites like Coursera, Udemy, and edX have courses on these topics.
  • Join online study groups and forums to discuss doubts and improve problem-solving skills. Websites like Stack Overflow and Quora have communities dedicated to computer science and coding.

You can also take the sample test to understand the test platform and the environment.

By following these tips and utilising the available resources, you will be well-prepared to conquer HackWithInfy 2023 and perform your best.

Remember, the key to success in the HackWithInfy exam is consistent practice and a strong grasp of core computer science concepts.

Previous HackWithInfy Questions

The Questions from previous HackWithInfys play a crucial role in preparation for the examination. These questions provide insight into the type and difficulty level of questions that can be expected in the actual program.

Question 1

As the manager of the hotel, you have N guests to attend to, and each guest has a happiness value (Ci) that depends on when they are served. The unhappiness of a guest is determined by the difference between their happiness value (Ci) and the time (x) they are served, which is calculated as |Ci – x|. Your goal is to find the minimum total unhappiness by serving all guests in any order you choose.

Please note that at a given time, only one guest can be served, and each guest takes exactly one unit of time to be served.

Here are the constraints:

  • 1 <= N <= 10^3
  • 1 <= Ci <= N

For example:

Input: 4 2 2 3 3

Output: 2

Input: 4 1 1 1 1

Output: 6

Question 2

You’re tasked with finding the total number of positive integer pairs (A, B) where A, B <= N, A^B <= X and A+B is divisible by D. Given the inputs N, X and D, return the result modulo 10^9+7 as the total number of pairs can be large.

Here’s an example: for the inputs 4, 3, 2, there are 6 pairs that meet the conditions: (1,1), (1,3), (2,2), (3,1), (3,3), (4,4).

And for debugging purposes, a sample test case of 100, 121, 2 should return 4778.

Question 3

Given an array of size N and the limit M, find the maximum number of triplets that can be formed such that each element of the array is <= M. A triplet is considered valid if it meets either of the following criteria:

All numbers in the triplet are the same.

The numbers are consecutive.

Each element in the array can only belong to one triplet.


  • 1 <= N <= 10^5
  • 1 <= M <= 10^4
  • 1 <= arr[i] <= M



4 2

1 2 2 2



Explanation: Only one triplet can be formed {2,2,2}

Question 4

Find the minimum possible absolute difference between the maximum and minimum sum of elements in 4 non-empty contiguous subsequences of an array A of N elements by making 3 cuts.


  • 4 <= N <= 10^5
  • 1 <= A[i] <= 10^4



10 71 84 33 6 47 23 25 52 64



Question 5

You are given N people and K days, each day represented by an array of N numbers, indicating the order in the people who arrived at the theatre. Your task is to find the largest group of people who arrive in the same order for all K days.


  • 1 <= N <= 1000
  • 1 <= K <= 10
  • 1 <= a[i][j] <= N

Sample Input:

N=4, K=3

Day 1: [1, 3, 2, 4]

Day 2: [1, 3, 2, 4]

Day 3: [1, 4, 3, 2]

Sample Output:

3 (people 1, 3, 2 arrive in the same order for all K days)

Question 6

You are given a string of length n consisting of numbers and question marks (# represents a mine and the number represents the sum of the number of mines in the adjacent cells). Your task is to fill the question marks with either 0 or 1 in such a way that the string represents the correct sum of mines in the adjacent cells. Return the number of ways to fill the question marks.


  • 1 <= n <= 10^5

Example Input:


Example Output:


Example explanation: Two possible ways to fill the question marks are #1001# and 00001#.

Question 7

Akshat has N squares, each with a side length of S[i]. Your task is to help him create K pyramids using all N squares. The i-th pyramid has C[i] squares. The beauty of a structure is defined as the sum of the side length of the top and bottom squares of all K pyramids. Find the maximum beauty of a structure that can be created.


  • First line: an integer N representing the number of squares.
  • Second line: an integer K representing the number of pyramids to be created.
  • Next N lines: an integer S[i] representing the side length of each square.
  • Next K lines: an integer C[i] representing the number of squares in the i-th pyramid.


  • 1 <= N <= 10^5
  • 1 <= K <= 10^5
  • 1 <= S[i] <= 10^5
  • 1 <= C[i] <= 10^5


How Will The HackWithInfy 2023 Results Be Announced?


Participants will be kept in the loop about their competition status by Infosys via email updates.

Successful Round 1 completers will receive emails regarding their results and a set of instructions for the following round.

Final Words

HackWithInfy provides a unique opportunity for students to showcase their technical skills and get hired. The exam covers various topics such as algorithms, data structures, programming languages, and more. It is an excellent way for students to assess their strengths and weaknesses in these areas.

To summarise the key points, it is important for students to have a strong grip on the foundations of data structures, algorithms, and programming languages and to practice solving coding problems regularly. They should also familiarise themselves with the exam format and be prepared to answer questions on diverse topics.

We highly encourage students to participate in HackWithInfy 2023 and take advantage of the opportunities it can provide. With proper preparation, dedication, and hard work, they can achieve great success and significantly impact the tech industry.

Our final recommendations are to never give up and to keep practising, practising, and practising. The more time you invest in preparing for the exam, the better you will perform and the more confident you will be on exam day. Good luck!

Take your Coding Skills A Notch Higher

If you’re looking to advance your coding career and stay updated on the latest tips and strategies, check out the learning and career platform CodeQuotient!

At CodeQuotient, we provide personalised guidance and resources to help you reach your goals. Plus, we offer a fantastic opportunity with our 3-month online SuperCoders internship program. This program is perfect for both upskilling software engineers and introducing first-time learners to project-based learning so that you can build a killer portfolio.

Don’t hesitate to reach out and learn more about how Code Quotient can help you on your coding career journey!


1. How do I apply for HackWithInfy?

Registrations for HackWithInfy 2023 are open only through the InfyTQ portal. Tech students who are already onboard InfyTQ can apply for HackWithInfy registration through the HackWithInfy program banner that is displayed on the application homepage.

2. Can I register for both HackWithInfy and Infosys Certification?

Yes, it is possible if you meet the eligibility criteria. Please carefully review the terms and conditions for more information.

3. Is participation in HackWithInfy only as a team, or can individuals also participate?

Round 1 of HackWithInfy is an online test that is taken by individuals. In the Grand Finale, teams are required. Finalists will receive guidelines for forming a team a few days before the Grand Finale.

4. What if I have technical issues with my computer or internet connection during the contest?

It’s important to ensure you have a fast and stable internet connection before the contest begins. You should also have a backup plan in case of technical issues. Infosys will not provide additional attempts.

5. Do I need to be online the entire time during Round 1?

Yes, you will need to be active during the entire process. Detailed guidelines will be provided before you start coding.

6. Can I view the solutions for the problems in the challenge?

No, the problems and solutions are not made publicly available. Participants can take the sample test to familiarise themselves with the testing platform and environment.


¬©ÔłŹ 2024. All Rights Reserved.

About  |  Blog  |  Contact  |  Privacy Policy  |  Terms and Conditions