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.
Time.new does not use
require
. It is inbuit.It isn't. Rather, it's a incorrectly upvoted not-so-good practice.
Why is floor function a better practice than div function?
That's not the index though, why use that word?
Seconded.
Feels good when you find that in the docs, right? :p
@suic, confirmed the fix. Thanks :)
Ok. Thanks for your help. Let's continue to solve another katas )).
This comment is hidden because it contains spoiler information about the solution
Really helped! Thanks!
But I did not understand completely why my version was wrong ).
a[a.index(i)]=(i.reduce(:+))
-and-
r.push((i.reduce(:+)))
gives the same result. I'm confused ))
@suic Jake has fixed the Kata so it can be edited. Please try again so we can clear this issue with the Haskell translation. Also, I added a new test case to each translation including Haskell.Many Thanks.
This comment is hidden because it contains spoiler information about the solution
@suic, you're welcome :)
No, I'm not interested in translating kata at the moment. I decided to contribute to CodeWars by testing, helping to debug and leaving feedbacks because I'm more motivated to help kata authors/translators than to produce new contents.
I've read many harsh (often irrational) comments towards kata authors/translators :( I'd like to prevent those if I can by finding issues early and reporting thoroughly or by leaving feedbacks mentioning potential issues and suggesting improvements :]
The testing you do is quite a big help :) Thanks for that!
The redesign wasn't that difficult at the end. I can't publish the fix due to this issue.
Btw. Have you ever considered translating katas to Haskell? Is kind of fun :)
Regards,
suic
@suic, thanks :) I'm not familiar with QuickCheck so I can't help you redesign, but I'll test it again once you fix it :]
Loading more items...