Ad
  • Custom 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.

  • Custom User Avatar

    thanks swchen!

  • Custom 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

  • Custom User Avatar

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

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

  • Custom User Avatar

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

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

  • Custom User Avatar

    still a problem even if it can be worked around.

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

  • Custom 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

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

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

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

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom 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...