Ad
  • Custom User Avatar

    I figured it out. Thanks!

  • Custom User Avatar

    In Python, unless it's a random test, both in sample and fixed tests the input is [12, 30, 21], not [21, 30, 12]

  • Custom User Avatar

    Hi thanks for the response. It's in python. [21, 30, 12] The full test suite.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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++.

  • Default User Avatar

    See my answer below (at the end of your first post).
    Morality: beware of extra-whitespaces...

  • Default User Avatar

    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.

  • Custom User Avatar

    I may have posted it in the wrong section

    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.

    C++ Completions 468

    From that I guess the problem is in your code but I know almost nothing about C++, so I can't help you.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution