7 kyu
Inertial Array
287 of 643aweleshetu
Loading description...
Arrays
Fundamentals
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.
python new test framework + random tests are required. updated in this fork
This comment has been hidden.
Ran this twice and 100% of the Python random tests were expecting
False
.This comment has been hidden.
None of the issues were fixed.
None of the issues were fixed.
none of the issues you mentioned exists.
Tests rarely generate arrays with 2 even identical maximum values.
.
You can pass the random tests by returning
False
..
Tests rarely generate arrays with just 1 even value.
.
@አወል እሸቱ, hi there. Good kata! I'm not sure about labeling it's probably should be marked as an issue, but since I'm not sure I put suggestion here. Tests do not catch one case:
Doing it like you did at first is indeed an incorrect approach. Raised as an issue.
great kata. IMO a bit harder than a 7 kyu
No preloaded function in Python
enough information provided :)
Why not providing a template as any translation in other language and as the vast majority of CW katas?
well, i personally provide template but the translator wanted it this way and maybe he wanted to teach how functions could be written. which is not a bad idea :)
Python translation Kumited.
Please review and approve.
This is the first Kata challenge I've tried to solve, so I'm still getting used to the rules of engagement on codewars.
It appears you need to pass 100% of the test cases to move to another challenge. I'm so close to solving this challenge, my current solution has passed all but 2 of the test cases. I've spent a enough time on this where I want to get some help. What do people do people normally do when they're so close but can't get every test case passed?
Do people ever post their current solution and get feedback from the discussion channel?
Easy way to get help on solving a kata is to join this on gitter and ask what every questions you have.
Not the best place to start. This cata is not easy. As for me - I always try to figure out myself. As for the tests - that's the point. Passing 1 test is easy. Passing all is hard and teaches you to think ahead solving every possible condition.
This comment has been hidden.
I dont see where you check max to be even.
UPD. oh my mistake. didnt count for int.
Frustrated. I couldn't find where the mistake is at all.
Some of the test cases on this are incorrect. Here is an error log I'm getting:
In this case the maximum value is odd (
581
) and so the test should expectfalse
.sorry, the reference solution still returns
false
on that test case.If you were mutating the array, then the tests were generated improperly, Now the tests are corrected to be generated correctly
This comment has been hidden.
good job.
I don't think that the issue has been resolved. Since this is a 7 kyu challenge many beginner programmers will probably get frustrated by the misleading test cases. Perhaps you could do this instead to produce more reliable tests:
your soultion can't pass, can it ? Because, Some fixed tests are there to tackle potential cheat solutions.
no, but it doesn't change the fact that your random tests can be created inaccurately if we mutate the array in our code. As I said, many beginner programmers will probably not be able to catch that as the issue, get frustrated and just mark down your kata as not well created.
alright ! corrected towards beginner friendly :D
Very interesting. You can't make this in 1 line of code using Linq like a lot of other 8-7kyu. Had fun solving this.
Nice you enjoyed it :)
Approved
How are you supposed to test if the things are greater than a non-existant value?
This comment has been hidden.