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.
Nice. I arrived at something similar.
What in the code needs
Import java.lang.Math;
?Its not bad.
Just remember to make your code easy to understand to others.
Also try not to repeat yourself. You are calculating 3 times the where the half is.
Instead you can make a specific variable for it at the beginning solving both of your problems.
a good solution, but it wont work if y try add comma, because punctuation can be between words
"Pig, latin is cool" result = "Pig, atinlay siay oolcay"
Is the type casting necessary or best practices?
Someone can give me feedback about my solution?
I think your solution is way less efective, and in this top rated solution is problem with creating String s (it's redundant) we should just return new string from substring and that is it. Clear effictient and without redundancy :).
Love this solution. Interested one
This comment is hidden because it contains spoiler information about the solution
It's bad practice! Because every use of the substring method creates a new string. Hence we pollute the string pool. See mine....
Extremely disappointed that this did not work. I had to take the long long long way around.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
beautiful...?
Why are you importing java...Collectors if you r not using Stream API? :D
Why people are voting "Best Practice" to a String concat loop?
Loading more items...