TCS CodeVita 2024 Round 1 | Character Token Stream Modulation & Laser Security Grid Breach Simulation
TCS · Question · Posted Jun 2026
Problem 1 - Character Token Stream Modulation Problem Statement A high-throughput network switch processes a continuous stream of alphanumeric character tokens represented as a string S. To patch data leak vulnerabilities, a cyber-security parser must analyze contiguous substrings within the token stream. A substring is considered Modulated and Compliant if no character appears more than K times within that substring. Find the maximum possible length of a compliant substring. Constraints Constraint Value |S| 1 <= |S| <= 100000 K 1 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account