that means that, even if your code output the correct result, it's not fast enough (hence, not "good enough"). => you need to change your approach to have a better time complexity.
Why the replace? And normally when you use split, you'll want to use another method to join them again, not doing it manually.
Remember to mark your post as having spoiler content when you post code like that, even if it doesn't work.
Yes many have the same problem: code too slow...
Hi,
that means that, even if your code output the correct result, it's not fast enough (hence, not "good enough"). => you need to change your approach to have a better time complexity.
cheers
I wrote good code, but all time I get "Timed Out", such anoying feeling :P
Anybody else have the same problem?
Why the replace? And normally when you use split, you'll want to use another method to join them again, not doing it manually.
Remember to mark your post as having spoiler content when you post code like that, even if it doesn't work.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution