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 get this when i try run my
PHP
codeClass './run' could not be found in '/home/codewarrior/run.php'.
translation: your list is probably cyclical
More importantly though: when you make an issue, make sure others are able to reproduce the problem. Otherwise you're just saying that your code doesn't work. And that isn't an
Issue
It could be argued that the display function should give up when a list is too long to provide a better error message - in particular because that's a likely mistake that the kata should anticipate instead of crash on.
I think the problem is the AppendTest in the function displayLinkedList.
Maybe you have an infinite loop. but that would be an issue with your code, not with the kata.
But if it is a problem with the kata, then you need to show how it is reproduced, otherwise it still isn't an actionable issue.
There is a problem when i attempt my code it gives me
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /workspace/default/tests/AppendTest.php on l
. it exits with 255 code50+55+56 == 161
50 + 56 + 57 == 163
The first testcase is
[50, 55, 56, 57, 58]
the max distance is 163 and max number of cities is 3So, the answer should be
[50, 55, 56]
which sums to 161 not 163PHP? You are wrong.
This comment is hidden because it contains spoiler information about the solution
No, and there are only 3 weird tests in PHP.
There is an issue in the 4th test of the wierd tests.