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
LC translation
Haskell translation
C++ Translation
C++ Translation. (Omits the reference solution, per the new JS fork)
Approved
LGTM! I would've personally loved to see
generateTestCase
further simplified as below, but it's good as-isPoint 1 is now fixed too.
Point 2 is now fixed
I heavily encourage you to add the Python fixed tests, splitting them into an
It(all_consecutive)
andIt(non_consecutive)
. The two tests from JS are too little imoFrom the description:
This means
std::generate(result.begin(), result.end(), [&] { return randint(-1e6, 1e6); } );
is non-compliant since it can generate duplicates and is not guaranteed to be sortedOptioal, but
fmt::format("numbers = {{{}}}\n", fmt::join(numbers, ", "))
is unnecessary becausefmt::format("numbers = {}\n", numbers)
will output the same exact thingThanks you for the translation. Approved.
I'm not sure that works. It might, but it might not.
Just fork all translations so they have the new description, and approve the forks. That definitely works.
Better to approve any translations you intend to approve, and only change the description in the editor ( or a translation! a translation can also change the description, and that also invalidates any other pending translations ) when none are pending.
If your reaction is "Huh? Wow.", yes, all of us think that.
Oh, sorry I didn't know about that. Should I revert the change, merge the translations, then add it back?
Loading more items...