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.
👌🏻
A workaround is to add the header "#include <chrono>" (but indeed it should be by default in the initial code, or (I have no idea) somewhere in the test code).
Added for all languages
added for python
why tf didn't I think of it this way;
She meant there are no sample tests.
can you please elaborate?
It is still out of range for C++ int type.
main.cpp:25:40: error: use of undeclared identifier 'chrono'
static default_random_engine generator(chrono::system_clock::now().time_since_epoch().count());
Attempt is not working
C++ test has some problems, but attempt works well. Check it, please
brilliant!!!
Thank you so much!!!!
It's called a lambda expression.
It's basically an unnamed function that takes an argument
n
and returnstrue
iffn
is divisible by2
.Please, can anyone explain me how this punctuation [](auto n) {return n % 2 == 0;} works?
Should be written that test part is not working at all, just submitting