← All problemsSign in

Deok-su and his Debts

Jang Deok-su is down on his luck, having accumulated enormous debts with loan sharks. He needs to solve a problem so that he can repay his loan. Since you are his teammate, help him solve the problem for your own survival. In the problem is given a string containing, '$c$' or '+'. A Complete String is a non-empty string that consists of consecutive occurrences of "c++", any number of times. Fo

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