← Microsoft questions

Length encoding

Filed under Microsoft

Implement a method to perform basic string compression using the counts of repeated characters (Run-Length Encoding). If the compressed string is not smaller than the original string, return the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.