7 kyu
Magic Three
197 of 287Z-Bone
Loading description...
Fundamentals
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.
0 + 0 + 1
is 1, not 0.I am failing 2-5 test cases for which my solution returns the correct value on my machine and on REPLIT. I printed the return value and the log on these says false, but the result is 'expect: false, got: true'. I don't understand, why my solution always returns the correct value according to the log but a few are counted as incorrect?
18,-5,-36 => true Expected: true, instead got: false
Can someone approve this Python translation?
The author has been MIA.
Can some approve this python translation?
Python translation
Please review and approve
There are no solid checks on this requirement; the only case that kinda tests for it
[0]
, which is trivial and really can't catch it.Please add test cases like
[1,3,6,10,15,-12]
.Needs random tests.
If you need another example, why random tests are important, then look in my solution. :-)
If you need help for creating random tests, please ask! Here are many helpful people, who will give you advices and will help.
Working on it
Done! Added random tests as well
Can I get this kata approved?
You'll need more rank assessments and more satisfaction votes. It takes time - people don't always spend two clicks to indicate their opinion of a kata.