Well, this one is more inspiring. For the kata, the algorithm complexity of solution can not be reduced. However this trick is somehow better than doing int comparison (as I once did), let alone adding up two numbers each time. On the other hand, utilizing the set type also involves consideration of the feature of python language, which is good.
That is kata creators fault and I cannot get honor for this kata. I would like to get some help.
I don't at all understand your post. I tried several solutions and they all passed without any problem. Then I saw that you had passed the kata... I suppose one of your first tries had a code error?
I wrote the solution of this kata on c#. The code works perfectly, it 100% passes all tests. When i press "Test" it passes the "BasicTests", but when I press "Attempt" it doesn't pass "BasicTests" with "Input string was not in a correct format" exception and passes 50 random tests. That is kata creators fault and I cannot get honor for this kata. I would like to get some help.
Well, this one is more inspiring. For the kata, the algorithm complexity of solution can not be reduced. However this trick is somehow better than doing int comparison (as I once did), let alone adding up two numbers each time. On the other hand, utilizing the set type also involves consideration of the feature of python language, which is good.
This comment is hidden because it contains spoiler information about the solution
Most awsome kata i ever met on codewars which i have to write test cases myself, This is fantasitic
Good and weird kata, I hate these long test cases
This comment is hidden because it contains spoiler information about the solution
I don't at all understand your post. I tried several solutions and they all passed without any problem. Then I saw that you had passed the kata... I suppose one of your first tries had a code error?
I wrote the solution of this kata on c#. The code works perfectly, it 100% passes all tests. When i press "Test" it passes the "BasicTests", but when I press "Attempt" it doesn't pass "BasicTests" with "Input string was not in a correct format" exception and passes 50 random tests. That is kata creators fault and I cannot get honor for this kata. I would like to get some help.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Such a crap description
C++ translation
Please, review and (hopefully) approve.
AWSOME ONE, MUCH BETTER THAN THE LEECODE VERSION! THE AUTHOR IS ABSOLUTE A GENIUS!
This comment is hidden because it contains spoiler information about the solution