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.
Hi, is that real on java?
Have been explained in the Ludicrous version.
python new test framework is required. updated in this fork
Search in the youtube. There are several funny things about this one.
If the number returned is greater than 4, then it's an error.
I have thought for hours about this. On several occasions.
Can you give me some hint what trick might be hidden there?
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
I send the number 0..=255 to 'quarter_of()' and receive the number 1..=4 in response, but there are only 12 months - can I make 'quarter_of()' notify about an error when receiving the number > 12 ?
Amazing kata, realized immediately that it is a generalization of a famous "high school pyramid" :P
getting it right took some time though
he just slicing the crap out that string hahaha
In the initial solution
perimeter
is misspelled asperimenter
in the definition of the structshape_vtable_t
.cppreference on strict aliasing
Since the type of
shape
is a struct that contains (directly or recursively) a member of typeshape_t
, the cast does not violate strict aliasing rules, as struct types are aggregate types.(At least according to the definitions on cppreference)
Furthermore, since the type of
shape
is a struct that contains (directly or recursively) a member of typeshape_t
, the alignment ofshape
is guaranteed to meet the alignment requirements ofshape_t
.Lastly, since the very first member of the type of
shape
(directly or recursively) is of typeshape_t
, the offset to that member is guaranteed to be 0.Thus, that pointer cast is valid.
This comment is hidden because it contains spoiler information about the solution
Loading more items...