Unfortunately it didn't. At least not for me. Why would "you can count it as one work capacity" mean that a job can be shared between two (or more) workers?
It took me a lot of time (really a lot) to get what you meant.
The description has apparently been updated with this:
To chain multiple conditions, start your where with a "1 = 1" condition, so that you'll not need to worry about stripping the initial "AND/OR" from the first condition.
So none of the above would be correct.
The bad test feedback is still a thing though. Trying to match the whole thing with a big regex isn't a good idea at all.
Same here when translating to C#. Huge tests are really slow. I added 40 such test cases. Ref solution makes it in +- 8 seconds. I think it's so fast in JS because no high precision integers are being used and ref solution allows a tolerance on expected results.
Unfortunately it didn't. At least not for me. Why would "you can count it as one work capacity" mean that a job can be shared between two (or more) workers?
It took me a lot of time (really a lot) to get what you meant.
Kata retired.
The array size is known and fixed. This runs in O(1).
Does TCO mean Time Complexity Optimal?
Not a big deal as long as edge cases for same total sales are tested
Fixed
i think it has been corrected, it is great coding
The description has apparently been updated with this:
So none of the above would be correct.
The bad test feedback is still a thing though. Trying to match the whole thing with a big regex isn't a good idea at all.
7 years, all issues still there
Apparently fixed now.
Should be fixed in fork by @hobovsky
Correct, solution is invalid. Looks nice but fails for [2,4,40]
This comment is hidden because it contains spoiler information about the solution
Same here when translating to C#. Huge tests are really slow. I added 40 such test cases. Ref solution makes it in +- 8 seconds. I think it's so fast in JS because no high precision integers are being used and ref solution allows a tolerance on expected results.
Loading more items...