Draft
Witches, Goblins, and Spiders
9 of 10NonBrewed
Loading description...
Fundamentals
Algebra
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.
For the test case
n_goblins=9
,n_spiders=8
I see many different implementations:For some reason all of these 3 iterpretations pass the tests.
EDIT: Well, that was easy...
I don't understand this: "In order to turn into a Spidy-Gob, there needs to be a minimum of 8 spiders". Does it mean that to turn into a monstrous spidy-gob:
BTW I love the theme, spidy-gobs are scary as hell!
Missing test case of something like
2, 20
(where not creating Spidy-Gobs is actually more optimal).added
Python:
No random tests
Initial solution setup is wrong
No example tests
Description does not explain the order of the parameters given
It's not just wrong, it's missing.
I believe I fixed everything except for the random tests, wasn't sure how to add those. I tried going to discord for help and couldn't type anything in because it wanted me to confirm my account and said my email already exists.
This comment has been hidden.
Initial solution setup: Parameter name should be in snake case, so
n_goblins, n_spiders
instead ofnGoblins, nSpiders
.Ok, second update through. I don't think my "random" tests are so random. The only way I found to test it was running the random values through the function again. Of course the answer will equal whatever those values are.
added