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.
done
yes
This comment is hidden because it contains spoiler information about the solution
can any one suggest me beginner level async problems!
If not, the kata should create scenarios where this isn't the case, in order to invalidate solutions that can't handle this.
reminds me of a manager I had. no matter the task, always ended it with "Should be easy".
Instructions are unclear and vague:
"magic_ - a special property as it should be able to handle numbers given with it" should write "magic_ - special instance
and its property is being able to handle numbers given with it"and since it has and underline its not a public but private instance.
"whereami" is also instance and "whoami" is also instance.
How does inserting multiple callbacks with different
n
s work? Depending on the meaning ofn
it can mean one of these things:n
is the priority of the callback; callbacks are order byn
, then register order. This means usingcallback(1)
after manycallback(0)
will not affect the ones registered withcallback(0)
n
is the order of the callback stack at the moment; callbacks are treated as a list that can be inserted anywhere. This means usingcallback(1)
after manycallback(0)
will push all registeredcallback(0)
callbacks except the last registered one after this callbackIn the current design it implies the latter (from the default value being
n
, andn
called atnumber of callbacks
), but this design is unhinged and absolutely nightmarish to use.Also, note that the test only tests a single use of
n = 0
, so it doesn't touch any of the scenario above, and both implementations will pass. This needs to be explicitly tested.Random tests have fixed structures with randomized arguments, which is not acceptable. It is very easy to hard code against this (especially since it is the same structure as the sample tests).
root |> foo |> eggs
The semantics of result passing and arity handling is not defined anywhere. Apparently
root
can be in any arity, while every callback function must have arity 1 (and every returned result is directly passed to the next function). Having different handling for root and branch nodes is certainly not expected (also technically you can pass around multiple arguments by spreading an array, like in JS), and should be specified.Pretty neat kata, a bit challenging, I would say. I do believe it deserves 4 kyu for asynchronous stuff, but maybe 6-5 kyu can be enough.
Anyway, +1 to karma, hope this will be approved ^.^
To be honest, the description could have been much clearer (I fixed it after solving). I ran into the same problem too.
I don't think it's a general issue, Pavloslav! It'd fit into the suggestion category though in my opinion. 😊
By the way, 1 result was the expected lookup count, most probably because the kata was in beta (I approved this morning after fixing issues). Once approved, the kata is more likely to be put into the "similar kata" as you said.
The description claims that
gives exactly 1 result, but it gives 2 to me and will be more because some pages have "SIMILAR KATA:" section.
Not a great issue, but still...
.
Loading more items...