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.
I can not diecide between BP & C
This is a task that, like all tasks here, requires you to provide a valid solution, whatever it is. If an author doesn't want some library to be used, it's up to him to make it impossible.
I beleave This is not a task for using standard library from STL. I thnk they wanted us to create our own logic.
It passed because there are very few tests and none of the fixed tests have 10*variable or any power of 10.
Indeed, I studied this code and noticed exactly the same. How it passed the test?!
If anyone else is also interested, I found a reference to this c++ construct of list initialization: http://en.cppreference.com/w/cpp/language/list_initialization
This comment is hidden because it contains spoiler information about the solution
Hello, bolin-hsu and thank you!
Curly brackets means that we create temporary object, in our case it's vector consists of 2 elements. Note, it's new feature of C++14.
Have a nice day!
Nice concise code! What is the meaning of the curly bracket in the return statements?