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.
The Central Limit Theorem converges profoundly rapidly...
You definitely are covering the edge cases.
Rule #2 is still difficult to understand without reading this discussion.
The traversal needs to be more explicit:
For some reason, I find all the 2-3 kyu easier than the 4-5 kyu.
This comment is hidden because it contains spoiler information about the solution
Thank you!
I find interesting this kind of problems that make you think about concepts that you don't completely understand, even though you have already some natural intuition about it. It happens very often in math, but it is not so common in programming.
I will publish similar Katas soon.
@eugene-bulkin: Is the site working for you? I was able to direct link to this comment from the comment thread, but the entire rest of the site seems to be malfunctioning, even after clearing my browser cache. The javascript console reports "Uncaught TypeError: undefined is not a function".
And now it's working again. I'm not sure what happened.
Hey, I'm not sure what you mean. I think the test case is correct. The expected array on growing is
[0 0 0 0 0]
[0 1 1 1 1]
[0 1 1 1 1]
[0 1 1 1 1]
[0 0 0 0 0]
and the expected array on shrinking is the zero array:
[0 0 0 0 0]
[0 0 0 0 0]
[0 0 0 0 0]
[0 0 0 0 0]
[0 0 0 0 0].
Is
primaries[0]
also bound to the primaries list?Note: This thread made me realize a gap in my solution and my test cases. I just plugged that gap.
What if
callNextMethod()
could mutate the list without breaking the next call to the same method?p.s. Yes, if "1 dan" had been an option for "approximate ranking", I'd have set this one up there instead of 1kyu.
I would think that's what you want to happen, no? What would you prefer
this
refer to duringcallNextMethod()
?When you did/do before/after methods, you have to be wrapping the primary method along with the before/afters in a closure around the primary method, right?
So the function that
findMethod()
returns is not the actual function passed todefmethod()
but instead a closure around the real function body. Use that closure to replace or augment thethis
used to call the real method so thatcallNextMethod(this,...)
can do something good.I almost got this one done, but my solutions keep timing out or only get about 80% of the string discovered.
Indeed, I'm stuck just shy of 2kyu and trying to find a way to continue advancing..... wheee....
Great question... after the kata comes out of beta, all the users that completed it while in beta are credited with the extra honor and rank progress as per the rank the kata is assigned. So essentially it reflects the honor post-beta, plus the extra boost of the +3 honor while in beta.
Loading more items...