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.
Tests are apparently intended to expect
Number
s in all cases, except when the result should be an emptyString
or anError
. This is less than ideal ( expecting inconsistent return datatypes is not a best practice ), but IMO the description does a reasonable job of specifying it.All examples, and the note at the end, point to the value of an expression being a
Number
. This could have been specified explicitly, you could consider that an oversight, but I wouldn't really consider that a breaking issue. It's a reasonable default, and nowhere areString
s accepted where aNumber
should have been returned.Does that answer your question?
'alr approved some time ago'
@mjwebb I'm guessing your solution is modifying the incoming array of numbers. Looking at the randomized tests, it passes the same array (passed by reference) into the reference solution as well as into your solution UDF. I'll submit a change to duplicate the array so this doesn't happen. In the mean time, you shold be able to duplciate the incoming array yourself to avoid the issue.
My initial ColdFusion tests pass, but my submission attempt is failing with the followng message:
Expected [((12) 0) 7-27-8] but received [(120) 727-8196]
This looks like the expected result is wrong to me??
Approved.
Approved.
Thanks Brad , Revised and APPROVED
@bdw429s
Well , Thanks Brad for notifying me
I've encountered the Same Dilemma in Consective Ducks in other languges, in which it was a must to reduce the number of iterations to run under its time limitations
So Don't worry about it, It Still has Linear Solution and Consistent with Testing Criteria of not letting any higher Order Solution able to pass, So It's Fine ..
Thanks! Those are... hairy indeed :) I'll see what I can do to come up with something similar in CFML.
Well, have fun ;)
https://gist.github.com/Steffan153/7f8a76d71a20cf9a061bb0af4dc9e35a
CFML Translation!
@stɛffan153 ?
:)
Loading more items...