Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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?
wow, very nice, another option that I learn from you!!
I was confuse about the year range, I use that in my code
OP solved the kata. the latest submission from OP (as fetched from "view solution") consistently passes the tests. closing the issue as not reproducible.
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.
Because:
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
.
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.
3/8
is not0.375
, it's0
.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
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);
make more test case bro, I don't even know if my code work correctly
create your own trust me it pain but you learn how permutations work and how it generate.
nice kata
Loading more items...