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 Description told us use
trim()
, but actually needn't.This is cheat! 👍😉
Spoiler flag!
This comment is hidden because it contains spoiler information about the solution
ohh shit bro i worte 8 lines of code to this program,but you finished this program in one line ,nice man......
This comment is hidden because it contains spoiler information about the solution
Did you think about providing the separator " " directly to joinToString()?
This way you can avoid the replace().