Infosys Specialist Programmer Interview — HackWithInfy Round 2 Live Coding
- Field
- Engineering
- Company
- Infosys
- Role
- Specialist Programmer (Power Programmer premium track)
- Duration
- 20 min
- Difficulty
- Hard
- Completions
- New
- Updated
- 2026-05-25
What this round is about
- Topic focus. The HackWithInfy Round 2 Specialist Programmer technical loop, covering one hard live-coded DSA problem at optimal complexity using segment tree with lazy propagation, one system design at 1M requests per second with explicit capacity numbers, depth on CS fundamentals across JVM garbage collection and locks vs lock-free and cache eviction, and a culture-fit closing on research aptitude and open-source contribution.
- Conversation dynamic. Arjun Kumar, a 9-year Principal Programmer in the Infosys Strategic Technology Group at Bangalore Electronic City and a 5-year HackWithInfy SP panel member, is warm at the start and sharp in the middle. He interrupts during live coding on purpose to test whether you can keep your train of thought under verbal pressure. He never praises an answer.
- What gets tested. Optimal-complexity reasoning under live interruption, capacity-aware system design with named tradeoffs, CS fundamentals depth where you pick one algorithm over another with a real scenario, conviction defence when the panel pushes back on a correct answer, and a real open-source contribution or research paper named in the culture-fit closing.
- Round format. Twenty minutes, four blocks, candidate-coded on the canvas. Arjun will deliberately push back on one correct answer to test conviction. The whiteboard is on throughout the DSA and system-design blocks.
- Why this loop is hard. Twenty minutes is tight: roughly seven minutes of live coding on a segment tree, six on a 1M QPS design, four on CS fundamentals depth, and three on culture fit. Arjun controls the pacing and will cut you off the moment the depth flattens. Every block has a content gate, not a time gate.
What strong answers look like
- Constraint-anchored complexity target. State the input size out loud before picking the data structure. Example phrase: N is up to 1e5, so I am targeting O of N log N. Segment tree with lazy propagation, not Fenwick tree, because the range-update is more natural there.
- Capacity numbers before architecture. State QPS, latency budget, hot key ratio, and shard key choice before drawing any box. Example phrase: 1M requests per second average, sub 10ms p99 budget for the limiter itself, top 1 percent of users at 10x the average, shard by user ID hash with consistent hashing.
- Real-scenario CS fundamentals. Pick LRU for a recency-dominated workload like a CDN edge cache and LFU for a frequency-dominated workload like a database buffer pool. Pick G1 for sub-200ms pause budget and ZGC for sub-10ms pause budget. Name the tradeoff with one sentence of reasoning.
- Named open-source contribution. Name one upstream contribution by repository, file, and the problem fixed. Example phrase: I sent a patch to Apache Kafka, file producer config, fixed a default value that caused message loss under broker failure. Personal portfolio repositories do not count as open-source.
- Conviction under pushback. When Arjun deliberately challenges a correct decision, defend with one line of reasoning before reconsidering. Example phrase: I picked token bucket because the design allows short bursts up to the bucket capacity. If you want me to optimise for strict per-second steady-state, I would switch to a fixed window counter.
What weak answers look like (and how to avoid them)
- Brute force on a constrained input. Writing O of N squared on N up to 1e5 reads as a flight risk. Avoid by stating the input size and complexity target out loud before writing a single line of code.
- System design boxes before capacity numbers. Sketching Redis and gateway boxes without stating QPS or latency budget. Avoid by writing QPS, latency, hot key ratio, and shard key as four bullets on the canvas before any box.
- Recited CS definitions without scenarios. Reciting LRU is least recently used and LFU is least frequently used without picking one for a real workload. Avoid by preparing one real scenario per algorithm in advance.
- Capitulating on the first pushback. Immediately switching your answer when Arjun challenges a correct decision. Defend with one sentence of reasoning first. Capitulating reads as low conviction and is the most cited soft-reject signal.
- Saying you read papers without naming one. The culture-fit closing tests for one specific paper or one upstream commit. Saying I read a lot of papers and blogs without naming a title and a one-line takeaway is the most cited soft-reject signal across HackWithInfy SP debriefs. Have one title, one venue, and one idea on your tongue before you sit down.
Pre-interview checklist (2 minutes before you start)
- Recall your one open-source contribution. Have the repository name, the file or commit hash, and the one-sentence description of the problem you fixed on your tongue. If you do not have an upstream contribution, have one technical blog URL ready.
- Have segment tree with lazy propagation in muscle memory. Practice the range-update range-query template once the morning of the interview. Confirm you can write the build, update, and query functions without a reference.
- Pull up the capacity-number template. Four bullets to write on the canvas before any system-design box: QPS target, latency budget added by the system, hot key ratio for the top 1 percent of keys, shard key choice with reason.
- Identify one paper you have read in the last 6 months. Have the title, the conference or journal, and the one-sentence main idea ready. Examples: Dynamo by DeCandia et al at SOSP 2007, Spanner by Corbett et al at OSDI 2012, or The Log by Jay Kreps on LinkedIn engineering.
- Re-read your LRU vs LFU vs ARC vs Clock scenarios. One sentence each on when one beats the others. CDN edge for LRU, database buffer pool for LFU, mixed workloads for ARC, Linux kernel for Clock.
- Confirm with yourself: yes to 1-year bond at 1L INR, yes to relocation to Bangalore, Pune, Hyderabad, or Mysore. No city preference, no hesitation on the bond.
How the AI behaves
- Probes complexity on every line of code. Arjun interrupts during live coding to ask for the complexity of the loop you just wrote, on purpose. Have the answer ready as you write.
- No mid-interview praise. He will not say great answer or exactly. He acknowledges with accha, theek hai, right, go on, and pushes deeper.
- Deliberate pushback once. He will challenge one correct decision during the round, often on the algorithm choice or the rate-limiter design, to test conviction. Defend with reasoning. Capitulating immediately reads as low conviction.
- Cross-questions buzzwords. If you say microservices, he asks which two services and why. If you say Redis, he asks which Redis primitive and the failure mode. Speak in specifics, not categories.
- Names a specific Hindi acknowledgement. Arjun uses accha, theek hai, right, ek minute as fillers between turns. None of these are praise. Read them as continue, not as you are doing well. If he says go on, finish the sentence you started and add the missing primitive or capacity number.
Common traps in this type of round
- Brute force on a constrained input. O of N squared on N up to 1e5 is the single most cited reject signal on the DSA block. Name the complexity target before writing.
- Architecture boxes before capacity numbers. Drawing Redis and the gateway without saying 1M QPS or sub 10ms p99 reads as bootcamp-level system design. Write the four capacity bullets first.
- Sliding window log without naming the memory cost. Picking sliding window log over token bucket without acknowledging that it stores one entry per request per key is the most cited rate-limiter mistake. Name the tradeoff explicitly.
- Reciting CS definitions without scenarios. LRU is least recently used as the only sentence, no scenario. Prepare one real workload per algorithm.
- Capitulating on the first pushback. Switching your answer immediately when challenged reads as low conviction. Defend with one sentence first.
- Generic culture-fit answer. I read research papers without naming one is the most cited culture-fit reject signal. Name one paper by title and conference.
- Visible hesitation on the bond or relocation. The 1-year bond at 1L INR and relocation to Bangalore or Pune or Hyderabad or Mysore is mandatory. A confident yes is expected.
Sample problems you'll face
The 3 problems below are the same ones you'll work through in the live session — no surprises. Read the constraints carefully; the AI persona will refer you to the on-canvas card by problem number.
- 1Maximum Sum Subarray of Size K
Given an integer array and a positive integer k, return the maximum sum of any contiguous subarray of exactly length k.
Example inputarr = [2, 1, 5, 1, 3, 2], k = 3Example output9 (subarray [5, 1, 3])- 1 ≤ k ≤ length(arr) ≤ 10^5
- Sliding window O(n); naive O(n × k) won't clear time limit
- Defend against k = length(arr) and k = 1 edge cases before writing
- Use the on-canvas card to read the prompt; sketch or write code on the whiteboard. The AI sees what you draw.
- 2Longest Palindromic Substring
Return the longest palindromic contiguous substring. If multiple have the same length, return any.
Example inputs = "babad"Example output"bab" (or "aba")- 1 ≤ length(s) ≤ 1000
- Expand-around-center O(n²) acceptable; Manacher O(n) bonus
- Handle odd-length AND even-length palindromes
- Use the on-canvas card to read the prompt; sketch or write code on the whiteboard. The AI sees what you draw.
- 3Range Sum Query with Point Updates
Implement a data structure that supports update(i, val) and rangeSum(l, r) operations. Both must run in O(log n).
Example inputarr = [1,3,5]; update(1, 2); rangeSum(0, 2)Example output8 (after update arr becomes [1,2,5])- 1 ≤ length(arr) ≤ 10^5, up to 10^5 operations
- Segment tree OR Fenwick (BIT) — defend your choice
- Sketch the tree shape for n=8 before writing code
- Use the on-canvas card to read the prompt; sketch or write code on the whiteboard. The AI sees what you draw.
Interview framework
You will be scored on these 7 dimensions. The full rubric with definitions is below.
What we evaluate
Your final scorecard breaks down across these dimensions. The full rubric and tier criteria are revealed inside the interview itself.
- Optimal Complexity Reasoning22%
- Capacity Aware System Design20%
- Algorithm Tradeoff Articulation15%
- CS Fundamentals Scenario Depth13%
- Hot Key Handling Depth10%
- Verbal Articulation Under Interruption10%
- Research And Open Source Signal10%
Common questions
Sources this interview is built on
Real candidate-report URLs (Glassdoor / AmbitionBox / PrepInsta / GeeksforGeeks / Medium) reviewed when authoring the questions, persona, and rubric. Verify the realism yourself.
- Infosys HackWithInfy Interview Experience SP 2026 GeeksforGeeksgeeksforgeeks.org
- Infosys Careers HackWithInfyinfosys.com
- Infosys Power Programmers Strategic Technology Groupinfosys.com
- Specialist Programmer Infosys Salary PrepInstaprepinsta.com
- Infosys Specialist Programmer Power Programmer PrepInstaprepinsta.com
- HackWithInfy Selection Process PrepInstaprepinsta.com
- Infosys HackWithInfy 2025 2026 Interview Experience SP Mediumshareexp.medium.com
- My Infosys SP Interview Experience HWI 2025 Mediummedium.com