Ad
  • Custom User Avatar

    :D Well, it's so nice of you to just jump to such insults. I had some "basic programming class"'es many years back and I don't remember a thing from that time - I tried to give you some practical advise so that you don't write crap like that in the future. But hey, it looks like you are the pro and you've got it all covered, so please, excuse me for trying to help you ;-)

  • Default User Avatar

    I could ask you "why not", but you'd probably just repeat some drivel you learned in your basic programming class.

  • Custom User Avatar

    Don't ever use $GLOBALS, please :-)

  • Default User Avatar

    I also got confused, those 4's also confused me, my eyes are confusing me :O

  • Default User Avatar

    Read the description carefully, it says:
    "When two numbers have the same "weight", let us class them as if they were strings and not numbers"
    And, as a string, 11 is before 2000.

  • Default User Avatar

    No wrong tests, as you can see at the top of the page 5900 guys passed the kata and all languages have the same tests.

  • Default User Avatar

    Is it possible for the test data to be wrong?...Im suspecting it

  • Custom User Avatar

    I seem to be passing all the tests but I'm getting a no method error;

    comp': undefined method each' for nil:NilClass (NoMethodError)
    from block in ' from block in describe'
    from measure' from describe'
    from `
    '

    Your help will be highly appreciated.

  • Default User Avatar

    @g964: Consider voting for this issue. Regards, suic

  • Default User Avatar

    Yes this fact is known since very long ago. Unfortunately 944 guys passed the Java kata and when more than 500 guys passed a kata in a given language it is not authorized to change the tests. I am very sorry for that inconvenience.

  • Default User Avatar

    Not sure how anyone is passing this. There's either an error in the instructions or in the tests.

    As posted below: "Test #3 of testBasics in PHP fails (result is false, but expected is true), which is because of $a2 having 36100 in it, but $a1 has no 190."

    This absolutely occurs. Another comment indicates that the arrays have to be of equal length, which would not make the above true. Yet another comment states that each number of A1 must have a matching square in A2, which if true, is not mentioned in the instructions.

    I hate shit like this. You guys spend so much effort trying to come up with the most elaborate, confusing problems, that you can't even keep straight what you're trying to accomplish.

  • Default User Avatar

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

  • Default User Avatar