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.
In Python, unless it's a random test, both in sample and fixed tests the input is
[12, 30, 21]
, not[21, 30, 12]
What language are you trying to solve? Is this an example test, or test case from full test suite? All languages I checked contain sample test of [12, 30, 21], and the answer is indeed 6. I cannot see any language with sample test of [21, 30, 12], but I cannot check full tests of all languages, so info on attempted language could be helpful.
This comment is hidden because it contains spoiler information about the solution
See my answer below (at the end of your first post).
Morality: beware of extra-whitespaces...
You have an extra-blank at the end of the second element of each pair. Modify your printing function above to show it.
Good luck! Cheers.
PS: Unfortunately at CW the tests are made with "Igloo" which gives "unsupported type" when the answer is incorrect.
No, you posted in the right section, but you'll have to wait until someone versed in C++ can answer you. Just wait patiently and don't create different posts about one problem, there's no need.
From that I guess the problem is in your code but I know almost nothing about C++, so I can't help you.