you are given a string s. suppose a character ‘c’ occurs consecutively x times in the string. replace these consecutive occurrences of the character ‘c’ with (x, c) in string

0

You are given a string S. Suppose a character ‘c’ occurs consecutively X times in the string. Replace these consecutive occurrences of the character ‘c’ with (X, c) in string

By Beginner Pedro Tillman at Jan 29 2021


Related code examples


Code examples by languages