← All problemsSign in

Treasure

Hussain was given a treasure chest on winning the UNTANGLE contest. To open it, he has to crack it's password. Help Hussain open the treasure chest. To crack the password, you are given a string. Encode it in such a way to represent the repeated consecutive characters as a count multiplied by $p$ followed by a character. Where $p$ is the 1,2,3,4,5…m where m is the number of number of groups of con

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start