6 kyu
Multiple of 11
384suuuzi
Loading description...
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.
Really good Kata, had fun solving it :)
No tests with huge numbers divisible by 11.
No random tests.
Java translatio Kumited! Please Accept :smile:
BigInteger
was never forbidden. Rejected so it doesn't get accidentally approved.JavaScript transltion Kumited! Please accept :smile:
CoffeScript Translation Kumited! Please accept :smile:
JS translation.
Please review and approve. JS also also has fixed precision, so
mod
is not available when strings are very large.Lastly, I noticed that you have not included random tests in your C++ original version. This version includes random tests, which I think you should include in your version as well and in any translations that are submitted.
Please approve this JS translation.
You should add test with a large number that is divisible by 11. I used long long and simple stringstream and everything passed. I guess there is no test covering that scenario and my solution just happen to pass.
Hmm... I'm not exactly sure how to start this. Could I have a hint, please?
This comment has been hidden.
Nice kata, I hadn't written C++ in years, and barely remembered my way out. By the way, I worked in a kata exploring similar ideas, but in JS, which is about calculating the modulo of big integer strings.
[C++] If the input is a string, then it should be a std::string, not a char*.
fixed! thanks :)
Nice kata. :-) You should add random tests.