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.
This comment is hidden because it contains spoiler information about the solution
Nani?
This comment is hidden because it contains spoiler information about the solution
You can actually leave out the '80 <', since failing the first condition automatically rules that out.
I never would have thought to use the set like that. Very clever!
Eva is actually closer to the original Hebrew.
Strings are immutable in Go. So if you append to a string, what it has to create a whole new string every time. String builder on the other hand is mutable, so it's going to be more memory efficient.
Go Translation
Go translation
This comment is hidden because it contains spoiler information about the solution
Approved
Prolog translation
Oh, I didn't know about control code. Thanks for clarifying. Well, I don't know what's best to do here though. Maybe just accept both (since this is just a 7kyu kata, which leans more towards beginners and they shouldn't worry about ASCII and stuff like that)?
Yes, its because 2 is a control code, which Go seems to drop when appending to a string. If its a problem, I can adjust the random test generator to accept both anwsers.
Hmmm, for the input
>( >:C >:C >( :D :) :)
, when I tried to use this operation for the result:It gives the following error:
But if I change
res
to array of bytes, append the byte on each loop, and convert it in the end, it matches correctly. Is this normal/expected?Loading more items...