Ad
  • Custom User Avatar

    Test.assertEquals(sumTimesTables([],1,10), 0, "Empty array");

  • Default User Avatar

    Thanks for your feedback. In random tests, lists were actually passed as arguments instead of strings. This was not done intentionally, my oversight. Already fixed it. =)

  • Custom User Avatar

    I didn't do anything else than approve your kata. If there was any change, the culprit is probably a benevolent mod.

  • Custom User Avatar

    Approved at 7 kyu :

    {"data":[{"rank":-7,"count":7},{"rank":-6,"count":3},{"rank":-5,"count":1}]}
    
  • Default User Avatar
  • Custom User Avatar

    Or for olympiad for 13-year-old codes - it's taken from this year Ukrainian Olympiad of Informatics, 2nd stage (1st - school, 2nd - town, 3rd - region, 4th - republic stage). Pupils 7-11 grade take part, it means participants are 12-17-year-old. I proposed 6 kyu, please propose your own level :)

  • Default User Avatar

    Hey, I used the word 'list' to refer to list as a concept, not the python keyword, I don't even use tuple or list in my solution, but instead an string version of it. I thought it would look more clear if I separated the chars with comas and parenthesis on the markdown, bad decision.
    The 'T' and the comma was a mistake. I will fix all things, thank you for the feedback.

  • Custom User Avatar
  • Custom User Avatar

    Thank you!

  • Default User Avatar

    This is in a

    Heading

    Explanation:

    Lego Bricks have a value of 1 (2^0).
    Cat Food has a value of 2 (2^1).
    Intercontinental Ballistic Missile has a value of 4 (2^2).
    A Single Piece Of Paper has a value of 8 (2^3).
    John's gift has a value of 0, and Bob's gift has a value of 2 (because Cat Food has a value of 2). (Gift's value is the sum of all elements of that gift.)
  • Default User Avatar

    Good point! The answer of 2 is correct, but the explanation is wrong. DOLPHIN is fine, because it is between DOG and EAGLE. I modified the feedback message to say "Remove BEE & ZEBRA".
    I also fixed the message in the next test case, which had a similar issue.

  • Default User Avatar

    Oh. You are talking about single gift elements, not entire gifts. It is not ordered by the least desired gift element, but a whole gift.

  • Default User Avatar

    Ok, I see. The description doesn't specify that it should be ordered by the sum of gift's elements, not the least wanted one. I fixed the description.

  • Default User Avatar

    I don't see what is wrong there. Can you explain?

  • Default User Avatar

    "inputs reversed" should be changed to "input strings swap places"

  • Loading more items...