6 kyu
Megamind
40 of 114sazzadshopno
Loading description...
Fundamentals
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.
Pretty fancy story, it's a funny kata to solve.
Fixed_Test Expected: equal to 2500050000 Actual: 2500050000
Am i missing something?
I do not get this: test.assert_equals(mega_mind(12, 4, 3, 2), 3)
why it supposed to be 3? I mean at the start, after the first round the HP of the bad guy is 0, so there is no possiblity of him to use regen powers, so the answer supposed to be 1. What am I missing?
Megamind has to shoot 3 times doing 4 hp damage each time. Read the example in the description.
There is
using namespace std;
in C++ Preloaded section which should be removed. See: https://github.com/codewars/content-issues/wiki/List-of-Cpp-Kata-to-UpdateFixed
Im passing all the tests but my code takes too long to run? What am I missing here?
O(1)
solution.loved this one
Ruby translation. Please, review and approve.
Approved.
Python translation. Please, review and approve.
You should change the variables' names. It's uncomfortable to look through the description to find out what those
E
,K
,P
,R
stand for.You could adopt the variables' names from the Python translation (just don't modify the description before approving).
Sounds very similar to this and this. Probably a duplicate.
It's not much different, but that's fine - not going to raise an issue.