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.
approved by someone
Don't solve problems that don't exist.
This is very much readable if you make it a bit less cramped (like in my solution).
C++ translation, with random tests
Point 1 is now fixed too.
Point 2 is now fixed
lgtm, approved
this piece of code is a friendly reminder that heavy string-work should be done in any language but C or assembly
C++ translation ready for review (author is inactive).
Rejected:
first
at all.std::pair
or, for this case specifically,std::optional
is usually the better choice here).This comment is hidden because it contains spoiler information about the solution
C — so minimal and yet sometimes so elegant.
This comment is hidden because it contains spoiler information about the solution
do_test
is in reverse order;Assert::That
's syntax is:Assert::That(actual, Equals(expected))
rand()
? if you need a good RNG, you can use<random>
:using namespace std;
should, preferably, be removed; solution setup doesn't compile because your tests useostringstream
withoutstd::
.Loading more items...