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.
Really nice kata - I've just started tangling with C++ and this had my head spinning madly for quite a while! Loved it, thank you.
thanks swchen!
had the same problem in R. Look closely at what you're supposed to return.
In R it is a single string of the numbers in brackets with no comma between them - very easy to miss that last detail.
e.g. '(1 2)'
Is an excellent kata btw
finally something that seems easier (NB: for me) in R than it would be in Python. Many thanks for the R version :))
Vel, vel, vel..... I struggle with and pretty nearloathe regex but that was fantastic. One of the best concieved katas I've done yet.
Thank you, for the several hours of head-banging-against-wall hell I've just been through - awesome!!
This comment is hidden because it contains spoiler information about the solution
great kata, thanks - they're nicely instructional problems.
Unless I've misunderstood tho, the tests for Special Case 1 are incomplete.
"1. With only one vector, it returns that vector unchanged, regardless of which valid f argument you pass."
But, for example, if the function fed to vector_op returns value * 3, a couple of the current top ranked solutions return a list containing 3 tuples with values that match those in the lone specified iterable - they return [(1), (1), (1)] instead of [1].
I checked the current tests, those types of solutions are still passing.
still a problem even if it can be worked around.
def pair_zeros(arr, *args):
# just ignore *args and solve
i'm totally impressed and amazed by this too !!
but ... timed it. It's really slow compared to plain old for loop with if / else
3.574000120162964 sum
0.07800006866455078 for .. if / else
From time to time I wish there was an extra option on the How satisfied are you meter.
I am only just learning about this stuff, loved this kata. I'd have clicked very, very if there was such a button.
Thanks !!
This was completely new stuff for me. I had to go away and come back a couple of times So... what Voile says, having the class code presented upfront would be nice. It'd lessen the confusion without taking away any of the challenge.
excellent kata, thanks!
6 felt like the right range to me, and I'm nowhere near being able to do most of them without real effort. Good fun !
fab seriese of katas. Thanks! And thanks for breaking the final task up in to stages!!!
very cute !
I don't know enough to be certain but .... I think this is still unresolved.
At least on my own computer, my code throws a TypeError for an n value of "xyz". In the tests here, however, I'm getting
Traceback:
in
NameError: name 'err' is not defined
Loading more items...