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.
The description is incorrect: there are 5 arguments, not 4.
Kotlin test cases:
Fixed.
Confusing to me without advanced chemistry background...
Maybe because the image is missing? (see the issue I opened)
The following image in the instructions cannot be loaded:
https://images.tutorvista.com/cms/images/156/order-of-electron-subshells.png
V is one of the python sample tests but should it be shown as an exception in the instructions?
The conditions are actually quite confusing. Turning your character or using a potion are all irrelevant. The condition, based on my understanding, is that you are on an adjacent cell to the enemy (vertically or horizontally), INCLUDING the turn where you are moving away from the enemy, BUT EXCLUDING the turn where you have just moved into the cell.
Please correct me if I am wrong.
No big advantages I think. You may change to "elif" if you think that is clearer. I use consecutive "if"s just because I think that is neater.
In the python sample tests, "countSubsequences" should be amended to "count_subsequences".
The example in the kata description is wrong:
Not 3 clusters, not all points are clustered.
This kata is ranked 4 kyu, but the other Connect-4 kata with more requirements is ranked only 5 kyu...
https://www.codewars.com/kata/connect-4/
One way is to come up with an algorithm which takes linear time and goes through the list once only.
This probably requires a change in the method of validation by directly verifying the solver's solution instead of comparing it against a predetermined solution.
Similar but more complicated case:
Note:
['kp', 'ep', 'um', 'nt'] is 0 -> 3 -> 8 -> 12 -> 15.
['et', 'ci', 'yh', 'nt'] is 0 -> 5 -> 10 -> 12 -> 15.
Python - final test cases - Issue of equally valid paths but only one is deemed correct. Example:
Note: Both 'ba' and 'zc' turn '0' to '1' in this test case.
Loading more items...