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.
Not a suggestion.
Thats a good idea, beyond testing algorithms or logic knowledge, more like testing basic PHP stdlib knowledge.
Maybe there is a "PHP essentials" collection list?
As you can see on the details-tab at the end of the site: 63 warriors did this kata in C++ without problems!
So there is no issue with the kata! The problem could be on the codewars-engine, then try again later.
Or the problem is in your code, and this is why the compiler crashes. Then post your code here (mark as spoiler) and we will see, whats wrong.
Welp. I can pass the tests without problem, but when I submit (even an empty function), I get a compile error from the backend:
-isystem /runner/frameworks/cpp fatal error: 'boost/algorithm/string.hpp' file not found
#include <boost/algorithm/string.hpp>
I didn't include it, so it must have been added silently.
Is this something to do with this kata in particular, or is the backend buggy? :/
Ah yeah, missed that, thanks bud!
I know, I know. It will work up to numbers with 24 digits as is, but such problem its solvable w/o too much brains.
This one is actually a good for PHP devs. In PHP if you know your available DateTime class, this one is VERY easy.
PHP Devs, one of the most common tasks you will need to do in your jobs/careers/projects is work with dates. Embrace DateTime!
Nice defensive programming there!
Almost! you already had the DateTime object, just needed to format it! :D