Skip to content

Infosys HackWithInfy Guide 2025 - Competition Details, How to Participate & Preparation

Complete guide to Infosys HackWithInfy coding competition 2025. Learn how to participate, previous year questions, preparation strategy, and how to win Power Programmer roles with higher salary packages.

HackWithInfy is Infosys’s annual coding competition designed to identify and hire top coding talent for premium roles like Power Programmer. Winners get direct interview opportunities and higher salary packages (₹10-12 LPA).

HackWithInfy is a multi-round coding competition organized by Infosys for engineering students. It’s one of the most prestigious coding competitions in India, attracting thousands of participants annually.

Eligibility

  • Final year engineering students (B.E./B.Tech)
  • All branches eligible
  • No CGPA requirement (but good academics help)
  • Indian citizens

Format

  • Online coding competition
  • Multiple rounds (Prelims, Semifinals, Finals)
  • Individual participation
  • Multiple programming languages supported

Rewards

  • Power Programmer roles (₹10-12 LPA)
  • Direct interview opportunities
  • Certificates and recognition
  • Internship opportunities

Registration

  • Free registration
  • Through Infosys Careers portal
  • Or via college placement cells
  • Registration typically opens in March-April
ParameterDetails
Duration3 hours (180 minutes)
Problems3 coding problems
DifficultyEasy, Medium, Hard
LanguagesC, C++, Java, Python
PlatformHackerEarth/Infosys platform
SelectionTop performers advance to Semifinals

Problems Typically Include:

  • Array/string manipulation
  • Greedy algorithms
  • Dynamic programming basics
  • Graph algorithms (BFS/DFS)
  • Mathematical problems
ParameterDetails
Duration3-4 hours
Problems4-5 coding problems
DifficultyMedium to Hard
SelectionTop 100-200 participants
FormatSimilar to Prelims, tougher problems

Problem Types:

  • Advanced algorithms
  • Dynamic programming
  • Graph algorithms
  • String algorithms
  • Mathematical optimization
ParameterDetails
Duration4-5 hours
Problems5-6 coding problems
DifficultyHard to Very Hard
SelectionTop 50-100 participants
FormatOnsite at Infosys offices or virtual

Problem Types:

  • Complex algorithms
  • System design elements
  • Optimization problems
  • Real-world problem solving
  1. Visit Infosys Careers Portal

    • Go to HackWithInfy registration page
    • Or register through college placement cell
  2. Fill Registration Form

    • Personal details (name, email, phone)
    • College details (name, branch, year)
    • Academic details (CGPA, backlogs)
    • Programming language preference
  3. Verification

    • Email verification
    • College verification (if required)
    • Confirmation email with login credentials
  4. Prepare for Prelims

    • Practice coding problems
    • Review data structures and algorithms
    • Take mock tests
EventTimeline
Registration OpensMarch-April
Registration ClosesApril-May
PrelimsMay-June
SemifinalsJune-July
FinalsJuly-August
Results & InterviewsAugust-September

Problem: Given an array of integers, find the maximum sum of any contiguous subarray.

Difficulty: Easy-Medium

Approach: Kadane’s Algorithm

Solution (Python):

def max_subarray_sum(arr):
max_sum = current_sum = arr[0]
for i in range(1, len(arr)):
current_sum = max(arr[i], current_sum + arr[i])
max_sum = max(max_sum, current_sum)
return max_sum
Problem: Dynamic Programming

Problem: Given coins of different denominations and a total amount, find the minimum number of coins needed to make that amount.

Difficulty: Hard

Approach: Dynamic Programming

Solution (Python):

def coin_change(coins, amount):
dp = [float('inf')] * (amount + 1)
dp[0] = 0
for coin in coins:
for i in range(coin, amount + 1):
dp[i] = min(dp[i], dp[i - coin] + 1)
return dp[amount] if dp[amount] != float('inf') else -1

Focus: Data Structures & Algorithms

  • Master arrays, strings, linked lists
  • Learn sorting and searching algorithms
  • Practice 5-10 problems daily
  • Focus on one programming language

Resources:

  • LeetCode Easy problems
  • HackerRank Data Structures
  • GeeksforGeeks tutorials

Arrays & Strings

  • Two-pointer technique
  • Sliding window
  • Prefix sums
  • String manipulation
  • Practice: 50+ problems

Dynamic Programming

  • 1D DP problems
  • 2D DP problems
  • Common patterns (knapsack, LCS, etc.)
  • Practice: 30+ problems

Graphs

  • BFS/DFS
  • Shortest path algorithms
  • Topological sort
  • Practice: 30+ problems

Greedy

  • Activity selection
  • Interval problems
  • Greedy patterns
  • Practice: 20+ problems
  1. Time Management

    • Read all problems first
    • Start with easiest problem
    • Allocate time per problem
    • Don’t spend too long on one problem
  2. Problem Solving Approach

    • Understand problem clearly
    • Think of approach before coding
    • Test with sample cases
    • Handle edge cases
  3. Code Quality

    • Write clean, readable code
    • Add comments for complex logic
    • Use meaningful variable names
    • Test thoroughly before submitting
  4. Stay Calm

    • Don’t panic if stuck
    • Take breaks if needed
    • Focus on solving, not ranking
    • Stay hydrated and focused

Time Management

Mistake: Spending too much time on one problem
Solution: Set time limits, move on if stuck

Edge Cases

Mistake: Not handling edge cases
Solution: Always test with edge cases

Code Quality

Mistake: Writing messy, unreadable code
Solution: Write clean, well-structured code

Panic

Mistake: Panicking if can’t solve immediately
Solution: Stay calm, think step by step

Experience

  • Gain competition experience
  • Improve problem-solving skills
  • Learn new algorithms
  • Build confidence

Resume

  • Add to resume
  • Shows coding skills
  • Demonstrates initiative
  • Stands out to recruiters

Learning

  • Learn from mistakes
  • Understand problem patterns
  • Improve coding speed
  • Better preparation for placements

Network

  • Connect with other participants
  • Learn from discussions
  • Build coding community
  • Share knowledge

Participant: Ankit (name changed) College: Tier-2 Engineering College Result: Selected as Power Programmer, ₹10 LPA

Journey:

  • Cleared Prelims (solved 2/3 problems)
  • Cleared Semifinals (solved 3/5 problems)
  • Reached Finals (solved 2/6 problems)
  • Got direct interview call
  • Selected in technical interview

Tips:

  • Consistent practice (2-3 hours daily)
  • Focused on DP and graphs
  • Participated in multiple coding contests
  • Stayed calm during competition
  • LeetCode: Practice problems by difficulty
  • HackerRank: Coding challenges and contests
  • CodeChef: Competitive programming contests
  • Codeforces: Regular contests and problems
  • AtCoder: Japanese competitive programming platform
  • GeeksforGeeks: Tutorials and practice problems
  • “Cracking the Coding Interview” by Gayle Laakmann McDowell
  • “Introduction to Algorithms” by CLRS
  • “Algorithm Design Manual” by Steven Skiena

Ready to participate in HackWithInfy? Start preparing early, practice consistently, and focus on problem-solving skills. Even if you don’t win, the experience will help you in placements!

Pro Tip: Participate in multiple coding competitions (CodeChef, Codeforces) to build competition experience before HackWithInfy. Consistent practice is the key to success.