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.
Let say you have input array equal
[50, 100, 70]
and a max distance is30
.The recuresive function will result with
0
, but this kata expectnull
in such scenario.Gotcha, thanks!
The program gives you the internal measurements of the frame, but you really need to find the external measurements.
Could you please elaborate on this with a specific example? Why does ["1'", "1'", "1/2""] return "4' 4""? I'm not entirely clear on this.
Random tests are vulnerable to input modification.
really nice
This comment is hidden because it contains spoiler information about the solution
Should work for random test cases - Expected: NaN, instead got: NaN
If you want a kata with such comments ( at length ), try this one: Draw a Clock.
Three things: that discussion is over a year old, I found it like this, and I fail to understand why I would have to educate every new user on here. If you can't be bothered to learn, why should I be bothered to teach?
Here's a link: https://github.com/Codewars/codewars.com/wiki/Codewars-JavaScript-Test-Framework#testassertapproxequalsactual-expected-msg
If this is your first authored kata, have a look at this as well: https://github.com/codingforeveryone/READMEs/blob/master/codewars/writing-your-own-kata.md
Never came across such a kata yet that threaded this specific discussion. Would be helpful for you to either explain, post a link to a kata that has a discussion relevant to your input or not bring it up in the first place if you're not going to teach someone who's new to this...
I could, but it's been done to death. Read the comments on most kata that deal with floating point numbers.
No I meant about the
Test.assertApproxEquals
You could have nested any level in tests. Zero, one, more than one. Would have required recursive calls, and would have made for a more interesting kata. As it stands, it's really just another "
map
andreduce
my list".Can you please explain your reasoning? This is the first kata I created, so I'm new to writing tests and problems on here. Thanks
Loading more items...