
Copy a string, keeping only the first character of every run of repeats.
January 2018. A researcher posts a link, and every iPhone that previews it freezes and resprings, sometimes dragging the whole phone down with it. The page was one line of text repeated far past anything a preview was built to lay out. People shared it as a prank for a week. Squeeze the runs down before the renderer sees them.
squeeze(dst, "haaaaaaaaa")Expected result
[ha]For your own tracking. Tests grade your code.
squeeze(dst, "aaabbbccc")Expected result
[abc]squeeze(dst, "abc")Expected result
[abc]Expected files
runs.cAllowed functions
None. Write every helper yourself.
