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.
If two producers are selling the same product (i.e. the same id), wouldn't that skew the results? I'm having a hard time understanding the difference, but there definitely is one when you compare the output tables.
Despite the condition being 2 or less in stock, "stock < 2" also passes the tests
But with my code the outcome of other test cases also results in "fractional people" but I don't see how that matters if we're looking for years. How does 1213 people differ from 1214.4 if all we're looking for is if it's > 1200?
I believe that test case expected an empty array to be returned, whereas here that'd be [0, 0], no?
I'll double-check though, I've realized my accepted solution is suspicious anyway.
Can someone please explain how this passes the [+0, +0] test case?
This comment is hidden because it contains spoiler information about the solution