Please use Test.describe and Test.it instead of console.log.
Please use Test.AssertApproxEquals instead of rounding.
Please clarify the performace requirements ( ie, none ) or the acceptable time complexity ( ie, O(n²) ). With longer input lists, calculations could get out of hand - but they don't. We can't see your estimated rank.
Having same problem as below, just 13 of my cases failed for being 1min off. This is even after using Math.ceil() on my minutes variable as opposed to Math.round()
Reraising this as an actual issue.
Please use
Test.describe
andTest.it
instead ofconsole.log
.Please use
Test.AssertApproxEquals
instead of rounding.Please clarify the performace requirements ( ie, none ) or the acceptable time complexity ( ie,
O(n²)
). With longer input lists, calculations could get out of hand - but they don't. We can't see your estimated rank.Having same problem as below, just 13 of my cases failed for being 1min off. This is even after using Math.ceil() on my minutes variable as opposed to Math.round()
Why would an answer be "3hrs 60mins" instead of "4 hours"?
The first test in the sample tests is incorrect.