Ad
  • Default User Avatar

    Please read the issue posted above. Understanding the flaw, you can re-write and re-submit your code.

    Best of luck!

  • Default User Avatar

    Python (at least):

    Random Tests are not guaranteed to fail a faulty solution such as this one that fails to account for upper / lowercase counting as the same char, as shown the 3 test cases below.

    input  ' iwDwW59viI;LMxADnEc5XMCVVrX3hp0u '
    result 'W' should equal '9'
    
    input  'f.FGP1.H59u n3'
    result 'F' should equal 'G'
    
    input  'peLiEWOfbS,Brl1PsUcBgmaRnMShh5q8osKoyziKTvjv'
    result 'E' should equal 'W'
    
  • Default User Avatar

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

  • Default User Avatar

    it's not a completely ridiculous solution though.

  • Custom User Avatar

    Both open and hidden tests are way to limited but otherwise a pretty fun kata.

  • Default User Avatar

    According to the creator of this kata:

    It looks like when you are adding sandpile 1 to sandpile 2, one of them is getting modified. The add method should return a new sandpile with the final value, while the original two sandpiles are left in their original state.
    
    Either that, or you have something deeper that's wrong, such as sharing the data between two sandpiles. Basically, the test is checking to make sure the two sandpiles have the same values as they started with.
    

    i did this and worked

  • Default User Avatar

    I'm getting the same error, but the code works fine for every other test

  • Custom User Avatar
  • Custom User Avatar

    OP left the building, translations will come eventually if the right person stumbles upon the right kata at the right time ^^, closing!

  • Custom User Avatar

    What's meen testUpcomingBigNumbers
    It's last crash test, and i don't understand how will make correctly

  • Custom User Avatar

    Didnt know I can print in the results (:face:palm)
    Printed and found the issue
    thanks for the advice

  • Custom User Avatar

    Why don't you print the input of the test your code fails? If it says upcoming palindromic number, neither of them belong to it, all of those are interesting. Not a kata issue.

  • Custom User Avatar

    my code (Java 17) fail on test testUpcomingPalindrome with error: Should handle upcoming palindromic numbers expected:<1> but was:<2>
    I ran my code on all intergers between > 99 and < 1B for any number which is upcoming palindromic and on those numbers I ran the check to see if they are intersting (omitting the palindrome check). I only got the following numbers:

    100000000

    99999999

    999999999

    99999

    100000

    10000000

    9999999

    which, as you can see, fulfills either the first rule for intersting or the second...
    so I believe that there is an error

    any ideas?

  • Default User Avatar

    For me, a golang learner, great kata, thanks

  • Custom User Avatar

    I understand it is letter "F" and "I"

    No, it isn't. That's why the test is labeled odd characters. Try selecting that, it is a single char.

  • Loading more items...