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.
clever
return String(result.dropLast()) гарантирует, что в конечном результате нет лишних пробелов после последнего символа в строке.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
could you elaborate?
Yes, you are right. The description and the solution covers only the years and centuries AD.
The century 1 contains the years 1, 2, ... 100 AD. The description does not specify the format of years BCE or centuries BCE. Some notations are "-1", "1 B.C.", "1 BC" or "1 BCE". A correct solution without a description of the year/century format is not possible.
That's all very neat, but doesn't work for ages BCE.
Like for Sprache :)
😆😆😆😆😆😆
Fixed.
Wow I didn't know what a deque was, I'm guessing it's some sort of a circular list?
You're right, basically just figured out how to do the workaround. :D It's a bug, one way or the other.
COBOL translation (author gone).
I don't understand. Tests seem to use
Int64
everywhere. This is a bug and fixing it is not part of the challenge, it's an error. In the new version I published I think there should be no problem anymore (though I'm not sure).This comment is hidden because it contains spoiler information about the solution
Loading more items...