7 kyu
Kind Rem(a)inder
242 of 308kira-abl
Loading description...
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.
Hi, I made a Python translation for this kata. Please approve it.
Why would it expect Arsenal in uppercase if the instruction said to return it in lower case if the max reminder is an even number. Here is the example below. [ 56, 120, 119, 11, 20, 20 ] 16 Expected: ''ARSENAL'', instead got: ''arsenal''
I made a C# translation for this Kata.
"alr apporved some time ago"
There are solutions, like this one which should not pass as the upper bound of the length of a and b is not specified and potentially infinite.
My suggestion is to test bigger arrays of random size in the random tests.
Edit: Kata specifications say "The lengths of the first two arrays will be equal, and the integers will always be positive", but the last fixed test uses
[0, 0]
as an array.Can we have more than one random test please? Like, fifty or so?
With a
for
loop that's not 50 times as much work, and it prevents hardcoded solutions. ( With just the one random test, a cheater has a 50% chance of being able to submit. Having to hit the Submit button, on average, twice is not a real deterrent to a would-be cheat. )Done. You are right. I still wonder, though, why do people cheat on CodeWars? I mean, what is the point? Isn't the whole idea to challange yourself and try to solve the problem?
The point here is actually rather that a good test suite should:
Failing to do the former properly is called a broken test. Failing to do the latter properly is still a broken test.
People often just think about the former without the latter, but of course, as we know, tests that let everything pass is useless.
There are now 50 random tests.
Typos on the description ...
-The first two will always be arrays consisting of intigers => integers -Reminder instead of remainder
Yep, you are rigth. Thanks for that feedback. Will now correct.
And this is not a 5kyu kata.
Thanks. Changed the name; there will be no kata #1; added an example test case; random test added; changed to 6kyu.
Issues resolved, see the comment above.
Bugger. :P
Well, here's waiting for kata #3 then. I hope it'll have an own name as good as this one. :]