Ad
  • Custom User Avatar

    This is fun! I finally got around to improving the description and adding more tests. Thanks!

  • Custom User Avatar

    Fixed, thanks.

  • Default User Avatar

    Thank you for your suggestions. I have updated the description, and tests accordingly.

  • Default User Avatar

    if you could test it now thank you :)

  • Default User Avatar

    Sorry I see now I'll go and fix it up thank you for raising an issue :)

  • Default User Avatar

    I don't see what's wrong straight away, Could you explain what's wrong here? If you could please post your solution and mark it as having spoiler content :)

  • Custom User Avatar

    Oh, awesome reading: thanks for this one too!

    And you made me remind of when I solved a kata about the lcm of an arbitrary array of integers: I built an impressive piece of code to factor each number into a dictionary (and to do it rather efficiently, computing more primes only as needed, not storing unnecessary informations and so on)... Just to see that there existed one of the most ancient algos ever, Euclid's, to do all the job with a mere call of it inside a reduce function.

    Well, at least now I can code Euclid's algo anytime into a one-liner and I also got how it works: certainly reading other coders' solution is the best reward one can get after solving a good problem :)!

  • Custom User Avatar

    You don't say: I started CW with just a far, far away memory of doing the CodeCademy track and in my first JS kata I had to google how to do a for loop (shame, shame and even more shame on me!).

    Now I think I moved pretty far ahead, but there is still a lot more to practice here :)

    P.S.: which style guide?

  • Custom User Avatar

    And a Ruby translation we now have too.

  • Custom User Avatar

    Thanks for your kind and really appreciated words, sayfidz :)

    You may also be interested in knowing that the interview apparently went well and that a Ruby translation should be released tomorrow.

    Between you and me, the original code to be fixed/updated was so messy that I ended up basically rewriting it all too in a shorter, more readable and even slightly more efficient version.

  • Default User Avatar

    It's always difficult to transpose a mathematical problem into a day life one. The solution of n choose x = 1 is "zero". From an artistic point of view it means, for me, that there will only be a drawing in black and white with no colored paint in the same way that you say a "black and white movie" opposed to a "color movie" (though black and white are colors too...).
    Thanks for your feedback!

  • Custom User Avatar

    Rounding errors from mutuating the way to solve it I used in JS: now I use the same process I used on Python and it should run without a problem.

    Let me know otherwise and thanks for your always precious feed :)

  • Custom User Avatar

    Thanks for your praise and I would be really glad if even just one coder had enjoyed it so much.

    As a token of my gratitude, I will anticipate to you that I hope to release a tougher version within a few days, provided I find enough time and focus to complete it :)

  • Default User Avatar

    Thanks I changed it to be more evident.

  • Default User Avatar

    Sure, go ahead. I am not a proper sensei yet, I guess.

  • Loading more items...