Infosys Specialist Programmer(SP) OA | Dynamic Programming & Bit Manipulation | Infosys SP Placement Questions | Array Sequence Optimization

Infosys · Question · Posted Mar 2026

Question 1: Hazardous Chamber (Ion Particles) Problem Statement: You are exploring a hazardous chamber filled with ion particles arranged in a line. Each particle i has an intensity I[i]. Whenever you decide to activate particle i, it releases an ion trail of magnitude: trail_i = I[i] % (i + 3) This trail interferes with future particles. After choosing particle i, any later particle j > i becomes unstable (and therefore cannot be selected) if: ((I[j] xor I[i]) % 6) == ...

The full answer & interview discussion are available to premium members.

Log in Create a free account