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 like this wit
This comment is hidden because it contains spoiler information about the solution
Done.
@brodiemark You probably also had to add
const
qualifier in the initial solution snippet before resolving the issue, as the issue author told. Please, refer to the C++ authorig guidelines.I have modified the tests so that, even if the user's code modifies the argument 'customers', the tests and validation messages refer to the original customer list. I think this is preferable to making the argument const in order to be consistent with the other languages.
Some revision:
This comment is hidden because it contains spoiler information about the solution
In C++, is the argument 'customers' implicitly unchangable?
It is desiable that const specifier is attached to it, otherwise even if the outputted array is correct some tests fails when customers is changed in the function.