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 created a second array with unique values.
I found a solution without creating a unique array and now they all pass. Thx for the tip.
I'm still getting this error when running my solution:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 67108872 bytes) in /home/codewarrior/run.php on line 6
I only get this on the last testAdvanced so i guess my solution works but the test array must be to big.
I have different PHP solutions for this issue but on the last test i get a memory issue because of the large test data.
Somebody had the same problem and can help me towards the right solution?