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.
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!
I have missed it "&", so a tiny remark: "int sum(std::vector& numbers)"
And of course, we could use "for" cycle to reach more performance and one more note it's passing the vector by value. To reach more performance we should used passing by link. So.. vector f(vector& input) is better way.