6 kyu
Add 'Em Pairs!
74 of 78Yushi.py
Loading description...
Mathematics
Combinatorics
Performance
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Haskell translation
Hey, mate, thanks fo rthe translation.
This kata is a bit old, so I just took a look at the tests and stuff and wasn't all that happy with it, so I updated it a bit.
I simplified the fixed tests a bit (it should be easier for you to include them) and I change the upper bound for the integer size, now the answer will always fit into a
64
bit signed integer (not sure if this matters for Haskell).I also updated the description to be more language agnostic, so that one description should hold for all languages.
Could you please update your translation for these little changes?
No problem. I've forked my translation here incorporating the changes.
There wasn't too much of a performance hit with the previous constraints, but it is definitely more common to work with 64 bit signed integers (
Int
) vs. unbounded integers (Integer
).Approved, thanks for the translation. Sorry for the delay, I know nothing about Haskell, so I couldn't review it myself.
Great katas to learn something new
It's a fabulous kata and I am glad that I did solve it.
But is it really 6 kyu? I've seen lots of extremely easier 6 kyus out there
Hey, I'm glad you liked it, and congrats on solving it.
Katas have been getting way harder with time; a
6kyu
nowadays is often equivallent to a few of the first5kyu
, even some4kyu
if you look hard enough.But the kata is really simple once you understand it, not that that's super easy, but the final solution is simple, thus, most rating it
6kyu
.Nice one. Approved.
Thanks man, it's been hard to get stuff approved these days, lol.
This doesn't make sense:
That's to avoid those solutions that use a custom type with eq altered to cheat.
I'm gonna change it, but why are you returning a float anyways, you likely won't get the necessary precision with that.
I fixed it, but you're still limited to just
int
orfloat
.https://www.codewars.com/kata/reviews/659057bb7ed799000141547b/groups/65909ad30dbd790001b74d30
Should be fixed now. You're a man of few words aren't you?
This comment has been hidden.
(or even better, remove it altogether, it adds 0 value)
Done, I was just ranting on some personal beef, but I acknowledge that it's not the best place for it.