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.
This comment is hidden because it contains spoiler information about the solution
Author/reference solution fails against a lot of test cases, such as
This comment is hidden because it contains spoiler information about the solution
Random test sometimes times out by itself.
Sanity check:
[null]
is not an appropriate return type;null
is.I can't understand, how those weight adjustments are supposed to work. While description says "adjusting it by 5%", test results do not match with what i was expecting. For example: test with
totalWeight: 77.5
,barWeight: 15.5
andavailablePlates: [38.25,38,32.25,14.25,8.5,4.75]
expects[null]
even thought using 1 plate of 32.25 on each side gives you total weight of 80, which is ~3% adjustment. Another example istotalWeight: 86.5
,barWeight: 17.75
, andavailablePlates: [36.75,35,32.75,24,17.75,15,13,12.5,5.5]
, that expects[32.75]
(total weight of 83.25, ~3.7% adjustment) instead of[35]
(87.75 total, ~1.4% adjustment).