Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I think it is not possible with f-Strings. The trick is that we must choose the option that best suits each problem.
elegant and simple to understand - nice one!
I didn't know you could chain sub string slice with a reversal afterwards via seperate square brackets, I was getting caught up having it all in the same brackets, which was causing all kinds of fun :)
Thanks, good man! I had no idea that the solution would be so simple! Already completely desperate, I opened the answers, and found an answer with an explanation. Now I understand. Thanks again. The difference in difficulty between 8 kyu and 7 kyu is enormous.
You're very welcome! I'm glad to hear my compulsive documentation habit is helpful.
thankyou for the explanation on the maths side, I was totally lost and managed to get there with passing 1000+ but running into issues and then stumbled onto the right answer out of frustration rather than intuition.
This comment is hidden because it contains spoiler information about the solution
This was one of my cheeky approaches when I started coding x)
not my mistake though.
yep I guess I'm doing some basic mistake that I haven't figured out yet, but got some hints from you.. let me think about it a bit longer, problem must be on my side as no one else reporting this issue.. Thank you both, I'll confirm once solved :D.
You're probably not returning the recursive call to your function.
Solved?
Thank you for reply.
Nah, I have this inside my code..
So it's returning as well..
You're supposed to return the stuff which you consider as your answer, you're logging them right now.
What am I doing wrong? When I console.log the result is correct, but the test response is undefined :-/. Thank you..
Time: 941ms Passed: 0 Failed: 4 Exit Code: 1
Test Results:
Basic tests
Log
[ 6, 7 ]
Expected: [6, 7], instead got: undefined
Log
[ 0, 1 ]
Expected: [0, 1], instead got: undefined
Log
[ 0, 1 ]
Expected: [0, 1], instead got: undefined
Log
[ 2, 2 ]
Expected: [2, 2], instead got: undefined
Completed in 5ms
STDERR
Unhandled rejection TestError: Expected: [6, 7], instead got: undefined
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...