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.
Haha, I did the same and through breaking down my code line by line on CGPT it was mentioned the code actually evaluates to the last value 'u' due to the way the comma operator works in JavaScript but I didn't bother to do an array like you did.
Simple, yet efficient. I like!
This comment is hidden because it contains spoiler information about the solution
Quite and pretty easy-going kata.
I suggest removal of entire example cases, and just state the accepted input format for each language && pin-point users to refer sample tests for more info.
You may refer here as an example and other katas that have a DateTime object as input.
what are the guidelines in a case like this ? the precise input type will depend on the language, but it's important to mention it as solving the kata depends on it. adding per-language code blocks just to write
Date / datetime.date / struct tm ...
seems like an overkill, and listing all of the languages in a single sentence seems to be frowned upon by the docsDescription should be language-agnostic
Approved
done
Ruby 3.0 should be enabled
Approved!
Solve this by using JS filter.
not entirely sure what you meant (the C++ tests are so incomplete that they dont even use
std::string
) but I added#include <string>
to the initial code where it was indeed missing. Also rewrote the assertions to use theExtraMessage()
parameter instead of printing to the consoleand done for Ruby
the error comes from your code, you are not
end
ing yourdo
loopLoading more items...