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.
One can solve the kata without cheating and make a true Quine, I/O is not necessary so I dont think this hint would be a good thing.
The solution and test code are in separate compilation units. So the type of
square
in the solution does not matter for a successful compilation. The only required thing is that something calledsquare
is in the compiled solution andsquare
is executable. Constants are placed in the executable memory by clang. Thesquare
constant contains machine codes corresponding to the following assembly program:(The input argument is in
edi
and the result is returned ineax
.)That is correct, Chrono79. This was my first kata and I tried to keep things simple in order to see how the entire process of creating a new kata works without complicating things.
@ailijic Click reset if you still get those tests, the random tests have been updated to fix that and it's fixed.
Adding multiple robberies has already been suggested, but the author wants to keep it simple, maybe a harder version could be made?
All random numbers are between 2 and 11!