Ad
  • Custom User Avatar

    Hmmm, it keeps timing out for me. I know my code isn't the best, but I'm wondering if maybe its because its using very large strings?

  • Custom User Avatar

    wow, very nice, another option that I learn from you!!

  • Custom User Avatar

    I was confuse about the year range, I use that in my code

  • Custom User Avatar

    OP solved the kata. the latest submission from OP (as fetched from "view solution") consistently passes the tests. closing the issue as not reproducible.

  • Custom User Avatar

    Yes! This is my first comment on a kata and it's to complain about the lack of Oxford comma lol. Other than that, I liked this one.

  • Custom User Avatar

    Because:

    Division should be integer division. For example, this should return 2, not 2.666666...:

  • Custom User Avatar

    to answer the question of language, it is cpp

    closing: this is straight up wrong answer with all relevant information being present in the failure message. If it was tested to say 0 locally I would chalk that up to different iteration order of unordered_map

    it does however indicate weak tests. the bug they have is that they use 0 as a default value instead of eg. -1, and after setting the count to 0, they then overwrite it, mistaking it for the default

  • Custom User Avatar

    .

  • Custom User Avatar

    It is unlikely that the same test case fails here and passes on your end. What is far more likely is that you are not running the failing test and/or not comparing the result correctly.

    I will close this issue as it does not demonstrate a problem. Failing a test is not an issue with the kata.

    My first guess without looking at your code (too lazy to go solve it in java) is that you're modifying the input. A function should not have any side effects other than what it is expcilitly meant to do - when the caller lends you some mutable data to look at, it is not at all ok to destroy that data.

  • Custom User Avatar

    3/8 is not 0.375, it's 0.

  • Custom User Avatar

    dividedBy
    Log
    8 / 8 = 1
    3 / 8 = 0.375
    three(dividedBy(eight())): expected 0.375 to equal +0

    In log everything is ok, but tests failed

  • Custom User Avatar

    Java here,

    The running code on my IDE is working but the test button sometimes shows errors and sometimes doesn't. When I try to attempt after getting all done somehow without changing the code, one or two failing cases(randomly with the same code) comes up but when I try them on my IDE it works fine.

    recipe = ("oil": 300, "flour": 1500, "sugar": 200, "eggs": 1)
    available =("oil":21000,"flour": 5000,"sugar": 1200,"eggs": 5, "milk": 200,"cream": 1000);

  • Custom User Avatar

    make more test case bro, I don't even know if my code work correctly

  • Custom User Avatar

    create your own trust me it pain but you learn how permutations work and how it generate.

  • Custom User Avatar
  • Loading more items...