Count runs of consecutive identical characters
Filed under Ubisoft
The question
For a string like abccchddgdddhccaaa print each run of consecutive same characters with its length.
No write-up yet. Related questions below have one.
Related Ubisoft questions
Collected from public candidate posts and coding forums. Updated Nov 2026.