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.
Yeah so the strings get upto like 10000 which I presume is the problem. The way I see it you have two options:
Try in a different language with less perfomance requirments (python strings only go to like 150 chars - my O(n^8) solution passes in under a seccond)
Try to reduce the complexity of your solution (how many times you have to iterate through the input). You could post your code in a spoiler but I don't like java so can't really help (someone else might though). You need to think about how to reduce the number of times you scan through the input. e.g. looking for all the burgers and then starting over and looking for all the fries etc will probably time-out in java.
give up (not a real option) 😦
Good luck 😁
It's Java
Which language?
Hello everyone! I'm kind of stuck in here. When i run my code through random tests it times out. I understand that my algorithm might not work fast with VERY LARGE strings, but this (input) String seem not to finish. I must be missng something and i hope someone could help me, because i don't want to give up on this one.
Peace and love!
This comment is hidden because it contains spoiler information about the solution
for the first fixed test, notice that your return has:
undefined
' '
(space)Thanks!
hi,
Not an issue but a question, unless you can give more specifics.
Read this, paying extra attention to the first sections. Edit: look at the last sect too, about comments and formatting.
closing the "issue" aspect
This comment is hidden because it contains spoiler information about the solution
did the same thing!