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.
Thank you so much ) i passed this kata
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Fixed
Please post your current solution here (and mark it as a spoiler) so I can review it and perhaps identify the problem, cheers :)
Hey,
I passed all public testcases, but when i press 'attempt" btn, i get SIGSEGV. Maybe someone could help me, what is a reson for this error? So, check for the nullptr list is tested in public testcase.
thanks a lot
Yes, that's it. You have to do the same thing faster, now.
Yes, i had one test-print. Now it works, but i pass only 3 tests ( random-small/medium/large ) and then have "Process was terminated. It took longer than 20000ms to complete
". So, i need to do it faster?
It's interesting, that's why i am doing it :)
might be, too much information printed to the console (do not print anything in this kata when using attempt).
Note: it's 2 kyu kata, and a difficult one to debug because you often have no clue of what's going wrong (just as you're facing now). Are you sure you wanna fight against this one now?
When i press to "attempt" button i get an error exec_failure. What could be a resaon for this and how can i fix it? Sample tests work fine.
Cause StringBuffer is thread-safe and used only if you have multi-threading programm and need synchronisation. So, it's work slower that StringBuilder. In this case there are no reasons to choose StringBuffer, cause we have just one thread.