Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I noticed that an edge case is only (occasionally) covered by the java random tests. I would suggest adding this test case:
{{0,1,0,0,0,0,0,0,0,0}, {0,0,0,0,1,1,1,0,0,1}, {0,0,0,0,0,0,0,1,0,1}, {1,0,0,1,0,0,0,1,0,1}, {0,0,0,0,0,0,0,0,0,1}, {0,0,0,0,0,0,1,0,0,0}, {0,0,0,0,0,0,0,0,0,0}, {1,1,0,0,0,0,1,1,0,0}, {0,0,0,0,0,0,0,0,0,0}, {1,1,1,0,0,0,0,0,0,0}}
[Python] The random test cases doesn't work. To solve the kata just pass the first 3 test case (two of which are the same)
Nice Kata!!
very interesting kata! 100+ lines but I did it =)
never thought an element can have that many open electrons, also new elements should be added to priodic table. yet it was fun
Hello, there is some issue.
I have solved this task with my own valid unique solution but I did not get any points.
Can you help me?
Thank you!
Oh ! I'm not smart enough to make such complex decisions. I can only offer a simple solution!)
Solved.
.
Sample test raises an exception on incorrect result, which looks confusing. It also lacks imports and uses
test.assert_equals
incorrectly (old test framework?)I updated both sample and extended tests with the correct imports and decorators: https://www.codewars.com/kumite/642317be07dabf004b69961e
Didn't touch the actual test algorithm.
("not an issue" ;) )
The fact that amount of failing tests is different every time is not unusual, because that's how tests with random inputs work.
The fact that your solution works locally in your IDE and fails on Codewars is not unusual either, because in most cases it happens that tests done by users locally are not performed correctly.
Please see if you can find something helpful in this paragraph of the troubleshooting guide. You can also post your code here (see this paragraph for some guidelines) and maybe we could help you find your mistake.
I have written code that well works in PyCharm, but when I try to attempt this code in CodeWars it shows me, thet I have failed tests, and if I try to attempt in one more time, CodeWars already shows me a different number of failed tests! But when I try this failed tests in PyCharm it works and answer is correct! I don't understand what the problem is and it annoys me(...
It has to be 4 kyu. And add regular expressions tag to this kata.
Wow, did not expect this one to be so hard at a first glance. Learned a lot while I solved this
Loading more items...