+ 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
5 Answers
+ 2
you are trying to splice out character i out of a let that only has one character in it
+ 1
Could you please explain to me what your code is supposed to do?
+ 1
I added the post with the challenge to the description
+ 1
Thank you all for the answers, but in the end I figured out that the entire approach isn't correct
0
I changed the code, it works now.
https://code.sololearn.com/Wp4xG59R4Xze/?ref=app