6 kyu
Range Parser
528 of 554DeepSpace
Loading description...
Algorithms
Parsing
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.
Haskell translation
','
,', '
or,
.I can't for the life of me figure out what that last "..or
,
" is supposed to mean.This comment has been hidden.
This comment has been hidden.
Thanks, I would not have figured it out.
the kata has random tests now, and this solution does not pass the tests anymore
.
This is an interesteing kata. I think I've answered it but may have omitted a case where there is an empty imput...
If I get the fail message: 'None should equal [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 14, 20, 22, 24]', does this mean that it is looking for a particular return when the input is nothing? It can't actually mean 'no return should equal [1:blah:24]' because that answer is the first test answer.
that means either that you forgot a return statment (if/else/loops) or that your function return actually
None
.needs random tests.
Good Kata, I like your solution Blind4Basics - really elegant!
thx! :)
Fixed.
Clojure translation kumited. :)
'alr approved some time ago'
This comment has been hidden.
This comment has been hidden.
It wasn't working without it my man.
@DeepSpace
,Nice kata! Two things I thought about when doing this kata:
'1-10,14, 20-25:2'
<- in between14, 20
. In all the other examples, multiple numbers/ranges are delimited by a single comma.Hi :) I've edited the description that there may or may be not a space.
.
Also, you didn't mention the lack of random tests before you resolved this?
EDIT:
I just re-read your reply, I misunderstood and thought you had taken the space out of the description and not the actual test case as well.
The random tests are still needed.