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
2 Answers
+ 1
With recursion.
https://code.sololearn.com/ca10a21a14a8
I hope it helps
+ 1
?