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 have a problem with randomTests, always one of the tests fails in the same way after 6-10 tests.
Env:
PHP 8.0
Json of array elements
$piecesPositionList
My result:
Win:Yellow
Tests result:
The problems I see:
Any possible suggestion of a solution is welcome.
simple, but gold
it is still poorly written despite the number of people who passed. It just means they read other comments or did more research to understand this problem further. The problem here lies in the interpretation itself rather than in the actual problem solving.
Before posting an issue you should look at the top of the page to see how many people passed the kata in your language (995 with PHP). If this number is big enough (and it is!) chances are your code is wrong or you didn't understand the description.
A good source of info when you fail is to read comments of other people.
Since you are new at CW you should read https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution.
I have a problem with this Kata in PHP 7.0.
I failed test,but I think I should have passed.
I got an error:
But if I dump
$strarr
and$k
As you can see, the first value shoud be
owiaxujylentrklctozmymu
and secondwlwsasphmxx
, but test makes us providewlwsasphmxx
first andowiaxujylentrklctozmymu
second.Test name:
ConsecutiveTestCases -> testBasics