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.
Yeah, using rune in benchmarks drops 230.1 ns/op to 139.2 ns/op for
yodositiiiiuyildogdsxsqsosssoqdsvesooos
on my machine, significantly faster. You avoid string conversion, since it allocates a new string every time it converts a rune to a string.you can use
fmt.Sprintf
insted of "+" to make your code even cleaner :)This comment is hidden because it contains spoiler information about the solution
take a look at
strings.Builder
:)show better fail messages not only "true" or "false"
error detail should be more clear