โ† Yatra.com questions

Compress a string with run counts

Filed under Yatra.com

The question

Compress a string so that aaabbbbcc becomes a3b4c2, with fully working code handling corner cases.

No write-up yet. Related questions below have one.

Related Yatra.com questions

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