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 also assumed we had to make the "best" move possible. The description isn't all that clear about what is required.
random tests added
In the description, step 4 is still missing the S for siblings.
i.e.
4. FLAMES --> 1>F 2>L 3>A 4>M 5>E 6>S
6>S is missing
got that. thanks
Hi vferries,
Hope you have read the description, it says the task is to create the pattern as shown in the description, it is in the process of beta :)
we need to use the nested function and looping as the kata name says;
Thank you :)
Good catch. You are right, input is in seconds and NOT milliseconds. Input is now corrected to sec.
Don't know why, even if I keep checking multiple things, something or the other I always miss.
You're on the right track, just not quite there. You shouldn't be returning those functions.
succ
returns a function, and that is all you need.When the description says
add(succ(zero), succ(zero)) -> succ(succ(zero))
, you shouldn't be returning your own function that does the same thing. You should actually be returningsucc(succ(zero))
. There's an easy way to do this.It's fixed ! Thanks
This comment is hidden because it contains spoiler information about the solution
Would you mind sharing your code? Thanks
I added a test case, please see if its ok now :)
Hey, you were right, I did have them switched. I fixed it now, so it should be good. Thank you for pointing it out.
Yeah, I think this is a misunderstanding of what the test section is for. @SumitBisht, that box is generally either used to provide tests similar to those you're using to judge the kata or left empty for the code warrior to implement their own tests.
No kidding.
Apologies, as I've replied to dashersw below, the expected text is incorrect. I've corrected the test case now. You did get the right result except you're missing the rounding.
I've stated in the description of the Position object that all coordinates must be integers (and rounded if nessesary). If this is not clear enough I can put it into the description itself?
Also, I think your comment should be marked as a Spoiler but I won't do that until you've had a chance to see this reply :-)
Loading more items...