Eligibility
- Final year engineering students (B.E./B.Tech)
- All branches eligible
- No CGPA requirement (but good academics help)
- Indian citizens
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
Format
Rewards
Registration
| Parameter | Details |
|---|---|
| Duration | 3 hours (180 minutes) |
| Problems | 3 coding problems |
| Difficulty | Easy, Medium, Hard |
| Languages | C, C++, Java, Python |
| Platform | HackerEarth/Infosys platform |
| Selection | Top performers advance to Semifinals |
Problems Typically Include:
| Parameter | Details |
|---|---|
| Duration | 3-4 hours |
| Problems | 4-5 coding problems |
| Difficulty | Medium to Hard |
| Selection | Top 100-200 participants |
| Format | Similar to Prelims, tougher problems |
Problem Types:
| Parameter | Details |
|---|---|
| Duration | 4-5 hours |
| Problems | 5-6 coding problems |
| Difficulty | Hard to Very Hard |
| Selection | Top 50-100 participants |
| Format | Onsite at Infosys offices or virtual |
Problem Types:
Visit Infosys Careers Portal
Fill Registration Form
Verification
Prepare for Prelims
| Event | Timeline |
|---|---|
| Registration Opens | March-April |
| Registration Closes | April-May |
| Prelims | May-June |
| Semifinals | June-July |
| Finals | July-August |
| Results & Interviews | August-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_sumProblem: Given a string, find the longest palindromic substring.
Difficulty: Medium
Approach: Dynamic Programming or Expand Around Centers
Solution (Python):
def longest_palindrome(s): n = len(s) dp = [[False] * n for _ in range(n)] start = 0 max_len = 1
for i in range(n): dp[i][i] = True
for i in range(n - 1): if s[i] == s[i + 1]: dp[i][i + 1] = True start = i max_len = 2
for length in range(3, n + 1): for i in range(n - length + 1): j = i + length - 1 if s[i] == s[j] and dp[i + 1][j - 1]: dp[i][j] = True start = i max_len = length
return s[start:start + max_len]Problem: Given a 2D grid, find the number of islands (1s represent land, 0s water).
Difficulty: Medium-Hard
Approach: DFS/BFS
Solution (Python):
def num_islands(grid): if not grid: return 0 rows, cols = len(grid), len(grid[0]) islands = 0
def dfs(r, c): if r < 0 or c < 0 or r >= rows or c >= cols or grid[r][c] == '0': return grid[r][c] = '0' dfs(r + 1, c) dfs(r - 1, c) dfs(r, c + 1) dfs(r, c - 1)
for r in range(rows): for c in range(cols): if grid[r][c] == '1': islands += 1 dfs(r, c) return islandsProblem: 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 -1Focus: Data Structures & Algorithms
Resources:
Focus: Advanced Algorithms
Resources:
Focus: Competition Practice
Resources:
Arrays & Strings
Dynamic Programming
Graphs
Greedy
Time Management
Problem Solving Approach
Code Quality
Stay Calm
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
Resume
Learning
Network
Participant: Ankit (name changed) College: Tier-2 Engineering College Result: Selected as Power Programmer, ₹10 LPA
Journey:
Tips:
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.