7 kyu
Greatest Difference
280 of 586ecocode
Loading description...
Strings
Fundamentals
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.
Python new test framework + updated description
.
Python 3 should be enabled.
.
Where are the test cases?
" All number couples will be given as strings and all numbers in them will be positive integers. "
Random Test Case = Testing for ['71-64', '9-9', '399-306', '823-757', '9-9', '84-84', '10-10', '6-6', '997-1850', '12-12', '571--328', '271-271', '8--85', '11-11'] Output: It should work for random inputs too: '997-1850' should equal '571--328'
The instructions seem a little misleading here. The assumption is that the number couples will be presented as 2 positive numbers separated by a dash. The random test cases are presenting some number couples as a positive and a negative number separated with a dash. Which just makes it look like two dashes. As a suggestion, change the separator if part of the task is string parsing, or present the pair as a tuple, list, etc. or say that the number couple may have a positive followed by a negative number. Which presents a different and interesting challenge in its own right.
Thanks!
This comment has been hidden.
This comment has been hidden.
Should be fixed, thanks to Zebulan for having me notice that.
Cheers!
Ruby translation submitted as well as the Pythonic one, if you can see it :)
Cool kata, thank you :)
Needs random test cases :)
I know, will sort that out soon!
Done!