0

Add opening and closing brackets according to the following pattern:

"example" -> "(e(x(a(m)p)l)e)" "card -> (c(ar)d)" https://code.sololearn.com/cA2a15a20A18 ================================== This is my code with loop. I want to make it with recursion,but i don't know how.Help me

25th Apr 2021, 10:06 AM
Azat Malgazhdar
Azat Malgazhdar - avatar
2 Réponses
+ 1
With recursion. https://code.sololearn.com/ca10a21a14a8 I hope it helps
25th Apr 2021, 6:00 PM
Sarthak
Sarthak - avatar
+ 1
?
25th Apr 2021, 4:43 PM
Azat Malgazhdar
Azat Malgazhdar - avatar