Ad
  • Default User Avatar

    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.

  • Default User Avatar

    thanks swchen!

  • Default User Avatar

    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

  • Default User Avatar

    finally something that seems easier (NB: for me) in R than it would be in Python. Many thanks for the R version :))

  • Default User Avatar

    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!!

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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.

  • Default User Avatar

    still a problem even if it can be worked around.

    def pair_zeros(arr, *args):
    # just ignore *args and solve

  • Default User Avatar

    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

  • Default User Avatar

    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 !!

  • Default User Avatar

    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!

  • Default User Avatar

    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 !

  • Default User Avatar

    fab seriese of katas. Thanks! And thanks for breaking the final task up in to stages!!!

  • Default User Avatar
  • Default User Avatar

    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...