+ 1

What is wrong with this recursion?

I tryed to solve the string permutation challenge, but when the recursion finishes the first cycle stops, what am I missing? https://code.sololearn.com/WF2Ipj6M4lIQ/?ref=app https://www.sololearn.com/discuss/1058731/?ref=app

8th Feb 2018, 8:01 PM
Daniele Lasagno
Daniele Lasagno - avatar
5 Answers
+ 2
you are trying to splice out character i out of a let that only has one character in it
8th Feb 2018, 8:23 PM
Rainer Wess
Rainer Wess - avatar
+ 1
Could you please explain to me what your code is supposed to do?
8th Feb 2018, 8:11 PM
Jonas Schröter
Jonas Schröter - avatar
+ 1
I added the post with the challenge to the description
8th Feb 2018, 8:17 PM
Daniele Lasagno
Daniele Lasagno - avatar
+ 1
Thank you all for the answers, but in the end I figured out that the entire approach isn't correct
8th Feb 2018, 9:13 PM
Daniele Lasagno
Daniele Lasagno - avatar
0
I changed the code, it works now. https://code.sololearn.com/Wp4xG59R4Xze/?ref=app
8th Feb 2018, 8:28 PM
Jonas Schröter
Jonas Schröter - avatar