6 kyu
Getting MAD
687 of 1,219jteodoro
Loading description...
Fundamentals
Arrays
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.
Lua translation!
C++ Translation.
i am just beginner and i don't know basics so how can i know about this
Try some easier problems; 8kyu problems will help you better understand the basics.
Other resources to consider:
With some practise, you'll be able to understand and solve this problem with ease.
Good luck! :)
Hello Lekha Peparthy,
Perhaps the best way to start with Codewars is to do a course in basic Python which is one to the easier languages to learn. Get a feel for how to do things then have a go at very simple problems and build up gradually. Don't be in rush. Despite what others may tell you it takes time to learn how to problem solve. More accurately breaking a problem down into small parts that you can solve and start joining the parts together to form a solution to a problem.
One big advantage of Codewars is being able to see others solutions which I find are nearly always better than mine! But that's a good thing because then you learn a little each day...
Best of luck
Prolog translation
Approved
Scala translation
CoffeeScript translation
LC translation
this translation modifies the description
Haskell translation
this translation modifies the description, because the example calculations didn't seem right
JavaScript:
Test.expect()
is usedfork fixing all
Approved
python new test framework is required. updated in this fork
Approved
For 6 kyu I suggest to add a performance test, e.g.:
*evil grin*
Oh, and using
Test.expect
is not advised, useTest.assert_equals
instead!JavaScript:
Your reference solution still does some logging. That's visible in the random tests, and it's not really necessary.
You have reinvented
Test.assertEquals
but are calling the user solution twice per test for it.JavaScript by convention uses camelCase, so the function name should be
gettingMad
. With a little bit of work it is possible to change this without invalidating existing solutions.Oh, I see. I'm going to take a loog to improve that points. Thx :)
fixed