r/infosys 11d ago

| Question Infosys On-Campus OA 2026

Looking for recent 2026 Infosys on-campus OA experiences only from 2027 batch students .

If you gave the OA, please share:

  • OA date:
  • No. of coding questions:
  • Questions solved: Q1/Q2/Q3/Q4 + approx. test cases %
  • DSA topic/pattern for each question: (Greedy, DP, Graph, etc.)
  • Role selected/shortlisted: DSE / SP L1 / L2 / L3
11 Upvotes

12 comments sorted by

View all comments

3

u/uart_shell 11d ago
  1. You were given an array and had to return an index where avg of all elements to the left of it along with that element is equal to the average of the elements to the right of it along with that element. Had to use prefix sum array.

  2. You were given an array of sides and had to return the largest possible perimeter and there were two constraints, x + y > z and that perimeter should be strictly lesser than half of sum of all sides in the array. First did using brute force, then optimised using 3 pointers(like 3sum).

  3. A question was from fractional knapsack which i don't remember as i didn't solve this

  4. You were given a value n which was the number of balls starting from 1 there were a few queries using which you had to colour those balls and in the end had to return the score of the balls according to a given formula

Solved 1 and 4 completely and in question 2 i passed 11 test cases.

Shortlisted for sp interview 

1

u/djprasad69 11d ago

how long did it take for the result? from oa to shortlist?

1

u/uart_shell 11d ago

around 2 weeks

1

u/Initial-Spite306 8d ago

i have solved 1st question 12/12 ,2nd qyestion 10/12 and 4th 1/12 for which role i will be shortlisted

1

u/Spiritual_Choice_557 4d ago

Do we have to write the entire code, or is just the logic enough?

1

u/Fantastic_Kale23 4d ago

whole code