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 really like how you used C++14 in your solution, lambda, acumulators and operation on iterators. Superb!
Where's function 'findIndex' from?
Nice solution!
Very bad practice to name a variable as 'new' which even if is not a C keyword, it is keyword from C++ to whom should be kept compatibility, almost always. Also dictionary is not suggestive enough and it may be ambiguous.
A funtion has a single return point so you should have only one 'return' instruction.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution