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.
This felt hard for a 7 kyu IMO.
This kata felt a little too easy for a 7 kyu IMO.
I've stored args in a scoped array. Different wrappings start to reference the same array. A test case not working with my "shared state" solution:
A pure solution may be even shorter/easier than an impure one
This is a debugging kata where the goal is to fix the incorrect initial code. This is intended and not a kata issue.
Heads up, the solution is given for free when you click 'begin training'.
My code passes all test cases except the very last 'tree of calls'. I wish there was a simpler test that did the same thing that was understandable enough to debug. The way that is written I have no idea how it expects to get a count from zero to 7. I keep returning 8 function calls instead. This criteria should be explained as part of the question prompt.
Ranks can't be changed!
Great kata! Second what others have said, this is not a 7 kyu.
You have to add a 'saySetup' and 'sayPunchLine' methods to the object of your result. So that e.g. result.saySetup() returns the corrent answer.
Tests are running against a valid api endpoint (that is hidden from us).
What you have to do :
I don't understand what exactly I'm supposed to be returning. I am able to get the result and isolate the correct joke but I don't know what to return nor do I understand the error message I am getting.
The instructions say:
"When you got the joke it should be accessible through a simple API of saySetup and sayPunchLine methods."
Can an example of what a correct return message would look like be posted? I am able to get the return object and find the correct joke but what exactly am I supposed to return?
I have similar questions regarding the error case as well but can't address those till I can solve the above.