Wipro Turbo / Velocity Tier OA | String Deduplication & Missing Number
wipro · Question · Posted Jun 2026
Problem 1 - System Log Error Token Cleaner Problem Statement You are building an integrity checking tool for an automated system logging pipeline. The system receives a string errorLog. Due to a recurring network glitch, identical characters may appear consecutively multiple times. Your task is to remove consecutive duplicate characters so that every contiguous block of identical characters is reduced to a single occurrence. Return the cleaned log string. Constraints Constraint 1 ≤ errorLog.length ≤ 100000 The string may contain ...
The full answer & interview discussion are available to premium members.
Log in Create a free account