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.
Hi,
it's great that you translated my kata into Python and I'm glad you liked it :-).
However, I'd do a few things differently if I were you:
Let me know what you think.
Cheers.
Thanks for the tip ... i had missed that part as well ... became a lot easier once I read it :-)
There's an HTML error in your third test, there is a quote missing:
Test.expect(escapeHTML('This is <a href="http://appsunited.net>my website</a>') == 'This is <a href="http://appsunited.net>my website</a>');
Maybe it is on purpose. If so, you might want to add in your description that valid HTML is not a requirement.
I think there is a syntax error in the test case in the ruby version of this kata. I've just solved it: running the test case gave me "syntax error" in the output. I didn't look further and just submitted my solution, which seemed to have worked.
Something like that, in this kata, a plateau is just a set of consecutive points with the same value. Let me know if it is not clear.
Sorry about that. In a mathematical function or an array of numbers, a local maximum is a point that has a higher value than the points directly surrounding it. for example, the array
[1,3,7,4,3,6,2]
has two local maxima: the first one in index 2 since 7 > 3 and 7 > 4 and the second one in position 5 since 6 > 3 and 6 > 2. Hope this helps.Thanks for this neat kata !!
Thanks much!! Got it working : ) The way it works seems a little awkward to me but it's working : ) so what happens in this example if we remove 8? will it then become something like (if i didn't make any mistake while copy-pasting) {value:4,left:{value:2,left:{value:1,left:{},right{}},right{value:3,left:{},right{}}},right{value:12,left:{value:10,left:{value:9,left:{},right{}},right{value:11,left:{},right{}}},right{value:14,left:{value:13,left:{},right{}},right{value:15,left:{},right{}}}}}?
i really thought i had figured this out. i'm also passing all tests except for one, the "Share either 5's subtree or 7's subtree" test.
I don't get it, I tested the following:
All of those print "true", which makes me think that I am sharing all that I can including the 5's subtree. Any clue to what I could be doing wrong? In any case, this has been pretty neat.
Nice! I see it in the describe/it functions too ... did it have a different name (like assertSimilarScores?) 10 minutes ago or am I going crazy?
That was nice! From the description, I didn't really understand how to use the checkScore(score,expected) function. Is the score a score-breakdown object? or an integer? what about expected? I must admit I didn't play with it, im sure i could have figured it out but not understanding the description was enough for me not to want to use it. Otherwise, great work!
There's a missing word in the description "any number of as arguments"
yes, this is not a "bugfix".
yes, please add something in the description about nil-values.
Looks like the link is now totally gone (but you might be editing it as I'm writing this)
Loading more items...