Retired
How do I combine these numbers? (retired)
Loading description...
Puzzles
Fundamentals
Algorithms
Logic
Games
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.
???
Can't use string literals
If you're going to forbid certain things, it helps solvers immensely if the tests give accurate failure messages.
When I have a literal string in my solution, I get "Error: You cannot use general math operators, or regex", which points in a totally wrong direction if I also have "&" in it. Because "&" might fall under "math operators such as
[+-*/%]
".Be precise, both in specifications and in error messages. "such as" and "some parts" have no place in specifications.
This has been done. It was called "additionless addition" or something.
Additionless Addition
There is only the difference in handling the 'negative' string component that makes these kata different. I was able to take my
add
function from doing this beta, and copy-paste it exactly into the other kata, and it worked.Sample tests are broken.
I have fixed them, thank you for the input.
You should unpublish immediately and add random tests.
Thank you for the feed back, I hope I've managed to resovle everything, but if you happen to do this again and see any issue please leave another comment.