Ad
  • Custom User Avatar

    In Ruby "Run Tests"? Must be fixed now, could you please tell me if it works?

  • Custom User Avatar

    Having an issue running the tests I get:

    "Testing is not defined"

    Are we supposed to implement this or am I having a different bug?

    Hope someone can help :)

  • Custom User Avatar

    Yes -.-
    Well I would never write code like this in production.
    But thats what codewars is for right?
    I like all that elegant stuff but that's all there is to it.
    Cheers.

  • Custom User Avatar

    You are welcome!

  • Custom User Avatar

    Thanks! BTW do you know that Guido "hates" reduce which has quite disappeared from Python >= 3...

  • Custom User Avatar

    Ah sorry, I misread it. It seems I also misinterpreted the meaning of issue :P

  • Custom User Avatar

    Aw well you are right, I didn't read the title I suppose. Maybe I should've got more sleep. Anyways. I like this because I like reduce.

    Cheers

  • Custom User Avatar

    Please which language? Read the description again.

    r = [r[0] = f(init, a[0]), r[1] = f(r[0], a[1]), r[2] = f(r[1], a[2]), ...]

    All the tests are right. Before posting an issue be sure that your program is correct. You could have posted a question instead of an issue:-) Tell me when you succeed.

  • Custom User Avatar

    Hey, my solution's output for the first test: {18,69,-90,-78,65,40} was:

    [18,3,3,6,13,5]

    instead of:

    [18,3,3,3,1,1]

    Isn't this correct? -90 and -78 are both divisible by 6, -78 and 65 by 13, and 65 and 40 by 5.