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.
Nice kata:D
Sorry if I'm wrong but it seems to me that, in the Ruby version, the TreeNode definition (with the attribut "value" marked as "attr_reader" without an initialize method to assign it) doesn't permit to the buildTree function to work. Does it ?
This comment is hidden because it contains spoiler information about the solution
CoffeeScript translation
It appears I was mistaken, upon further analysis, you're correct, I was just misinterpreting the results I was getting, sorry!
They don't. All the tests follow the same pattern.
If that's the case, then why do some of the random tests follow a different pattern?
There is no issue with the random tests in JavaScript.
This comment is hidden because it contains spoiler information about the solution
I forgot I wrote this but it looks fine.
nvm apparently i already wrote one and it's better
Scala translation
the problem comes from your code, you are not setting the
tree_size
to0
for an empty treePlease use appropriate formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Your solution is broken, not a kata issue. See https://docs.codewars.com/training/troubleshooting/#test-attempt.
This comment is hidden because it contains spoiler information about the solution
Loading more items...