solulubeta
Sign in
DSA Basics / Building up
02.18 · Problem

Short Code for the Chant

Medium Run-length encoding Pro

This problem is part of solulu Pro

To save space, a chant is written in a short code: each run of the same letter becomes the letter followed by how many times it repeats. So aaab is written as a3b1.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 48 of 90 · updated 2026-10-12