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
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, 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 :)
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.