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 figured it out. Thanks!
In Python, unless it's a random test, both in sample and fixed tests the input is
[12, 30, 21]
, not[21, 30, 12]
Hi thanks for the response. It's in python.
[21, 30, 12]
The full test suite.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
This comment is hidden because it contains spoiler information about the solution
YES! That worked! thank you! I was going crazy trying to figure this out. I completed the kata in python last night and i had to do the same thing with the whitespace at the end of the second element. I should've known I would need to do the same in c++.
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.
I'm having an issue solving this kata. I keep getting unsupported types. I printed the solution and the output is the correct. Please help! See my other post. I may have posted it in the wrong section. I'm new to codewars my apologies.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution