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.
Ranks are shared across languages, so a trivial task in a language may be much harder in another one. Changing ranks is expensive, not worth it, and not going to happen but in a few exceptional cases, so it's not useful to complain about that. Just enjoy the cheap points.
added to JS
Actually, I find the "gap" variation to be much easier. At least it looks this way to me now, having been stuck with this "step" kata.
UPDATE: After having it solved soon after, the kata doesn't seem difficult anymore. Just look ahead.
Not that memory efficient since the solution adds data to every single node.
this
is anObject
. The tests apparently wantthis.valueOf()
, which is the primitive string within the object.I'd say this is an issue. You're working on an Object ( because in a prototype method ); you should be able to return that Object ( you should also be able to return a primitive string ).
Note that primitive (!) strings are immutable, but
String Object
s are not, in that sense.It just gives a different value of
k
, but in the end it's the same answer, just taken from a different iteration.So I agree that your solution works ( I didn't get the answer right myself ), and this is great stuff. I guess the answer to your question about the loops is the fact that there wasn't a guarantee (at first viewing) that looping thru just once would guarantee the optimal solution.
Yes!
Interesting solution.
Better ask your question direct at this solution. Then the author will read your question and maybe will answer...
What does "TIA" mean?
Can you give the links of these solutions?
Because of the use of the markdown, did not notice that the picture is not in the middle, thank you for your feedback. Now that it has been corrected.
According to your advice, I removed the longer poem and add two link of
Chinese poetry
andChinese calligraphy
. ;-)As you want:-) Anyway thanks for your posts!
I keep it the same as in all other languages:-)
I think that already passed solution will not have the correct parameters if I make a change and they won't pass anymore...
Loading more items...