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 think your problem was with using
array_unique
I guess internally it makes a copy of the array and that was what's exhausting the memory.Click reset a few times and try again. If it still doesn't work, paste your code and mark your post as having spoiler content. Are you by any chance creating a new array?
@GlennVL91 try again now.
Yes, it seems a test array is so big that even O(n) solutions won't pass now.