You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, the character occurs only once. It is replaced by . Then the character occurs three times, and it is replaced by and so on.
Also, note the single space within each compression and between the compressions.
You are given a string . Suppose a character '' occurs consecutively times in the string. Replace these consecutive occurrences of the character '' with in the string.