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.
The test cases changed. This doesn't work anymore, as it returns the wrong outcome for int n =0 .
It's really cool!!!
Interesting way of reversing, i don't agree that it wastes cpu, i understand that you are creating an extra set of bytes with the result string but in this case i don't think it is very expensive.
so clever dude...
also: don't forget to always use the spoiler tag when discussing code. (I have added the tag for you)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you should use the type of StringBuffer , which can reduce the creatation of String variable in the StringPool.
How comes it accepted your code. I tried same logic. It passed the test and was denied by attempt.
Very not efficient solution, we use String: that create useless objects, use memory and cpu for nothing.
The best solution is the arithmic one, very more efficient.
Because it uses Strings for arithmetic. This negatively affects the performance and the memory consumption.
why?can you explain it? I tend to think it's the best practice.
Definitely not best practice. Unneeded and expensive use of a String.
cool!
good one... sensei
Loading more items...