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.
no example tests with left overs... (the specs are very weird and unintuitive, btw...)
That's another missing spec: Elements that can't be filled will be skipped instead of halting the entire packing process.
This is, again, not specified anywhere, and only exists in the random tests. And this doesn't make much sense either (if you can't pack everything in a box, you can't pack everything in anyways so trying to pack more elements into the box is futile).
It is unspecified what happens if an upper case letter is encountered but the first available space do not have 2x2 space available, such as:
When
C
is filled there is no space for it at the first available slot:Similarly,
string = AbcDefg
givesat
D
, which again has no space forD
but has space forefg
.C translation πͺ¨πβ (author gone)
Ruby 3.0 should be enabled.
This comment is hidden because it contains spoiler information about the solution