KPIT Technologies OA 2025 | ECU Sensor Stream Deduplication & ADAS Object Distance Window Optimization
Question · Posted Jun 2026
Problem 1 - ECU Sensor Stream Deduplication Problem Statement You are given a sorted integer array sensorReadings. Remove all duplicate values in-place so that every unique element appears exactly once while preserving their original order. Return the number of unique elements remaining after modification. Example Input: sensorReadings = [1,1,2] Output: 2 Explanation: The unique elements become [1,2]. The function returns 2. Constraints Constraint 1 ≤ N ≤ 30,000 -104 ≤ sensorReadings[i] ≤ 104 Array is sorted in non-decreasing order. Problem ...
The full answer & interview discussion are available to premium members.
Log in Create a free account