Retired
Convert Improper Fraction to Mixed Number (retired)
292 of 497Belax8
Loading description...
Fundamentals
Strings
Mathematics
Algorithms
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.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/209.
Please join the discussion to help us identify duplicate kata and retire them.
Retired as a duplicate.
Duplicate of https://www.codewars.com/kata/574e4175ff5b0a554a00000b/discuss/python. As it has even less value than the kata above, this one can be closed.
This should be reraised as an issue.
Very simple samples
This comment has been hidden.
Thank you very much for this!!!! I have updated the tests with your code.
@Belax8
,No problem! Thanks for your time!
What about some values like "
5/7
" or "7/7
" ?My solution returns "
0 5/7
" or "1 0/7
" but I don't think it's what should be expected (even if your solution seems to do the same).; ) )
I wanted this to be a simple kata, so we only pass in improper fractions. So '5/7' should never be passed into the function. I looked through all the tests and I couldn't reproduce this error. The numerator will always be greater than the denominator.
Also, the same goes for '7/7'. I wanted this to be a very simple kata, so I don't have you simplify the fractions or get rid of the fraction when it is 0/7.
Thank you for testing out this kata!!
It's a double. http://www.codewars.com/kata/simple-fraction-to-mixed-number-converter/
Only thing is we apparently shouldn't simplify fractions in this kata, but otherwise I could transplant my solution one-on-one.
( Frankly, the other kata is better. More languages, more functionality, more specific description. )
Try to make this one different.
Ha ha. I'm very sorry that I don't know of every kata that exists. It's great to see that you are so passionate about all the katas on codewars! Thank you for bringing this to my attention.