LTIMindtree SDE OA | Prefix Sum & Array Partition

Question · Posted Jun 2026

Problem 1 - Numeric Stream Filter Optimization Problem Statement You are building an analytics pre-processor for an IoT sensor data stream. The system receives an integer array sensorReadings of size N. Your task is to generate a new array called influenceOutput. For every index i, the value of influenceOutput[i] must be equal to the sum of all elements from index 0 through index i (inclusive). The solution must process the stream in a single pass. Constraints Constraint 1 ≤ N ...

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

Log in Create a free account