Shorten string based on consecutive run parameter
Filed under Komli Media
The question
Given a string and an integer n, truncate consecutive runs of any character if the run length exceeds n.
No write-up yet. Related questions below have one.
Related Komli Media questions
Collected from public candidate posts and coding forums. Updated Nov 2026.