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.
This is fun! I finally got around to improving the description and adding more tests. Thanks!
Fixed, thanks.
Thank you for your suggestions. I have updated the description, and tests accordingly.
if you could test it now thank you :)
Sorry I see now I'll go and fix it up thank you for raising an issue :)
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 :)
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 :)!
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?
And a Ruby translation we now have too.
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.
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!
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 :)
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 :)
Thanks I changed it to be more evident.
Sure, go ahead. I am not a proper sensei yet, I guess.
Loading more items...