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
This comment is hidden because it contains spoiler information about the solution
Could you give me an example and I'll update this kata.
Awesome! Thanks.
The program gives you the internal measurements of the frame, but you really need to find the external measurements.
myjinxin2015 - The width that ZED was talking about was about the width of the blade when it made the cut. I removed that from the kata, so there wasn't any irrational numbers in the answers.
I updated the description to talk about imperial measurement conversions.
I re-formatted the description to show how the inputs will be passed as strings.
You are right. The width of the blade would cause the answer to have an irrational number. I removed the kerf from the problem. Thanks for the input.
Found an interesting occurence. In one of my for loops I didn't use
for(let i = 0;
. I just usedfor(i = 0;
. Whenever I attempted the solution, I would get a Exit Code:137 with a Max Buffer Size Reached (1.5MiB). I would have ~13500 passed tests each time I ran it. I was trying to figure out how to optimize the code to get it to run faster. After going over my code a couple times, I just cleaned up that for loop declaration and boom. All of a sudden, it passes with 700 tests. I guess that's a good lesson to me, not to trust that those variables aren't already delcared somewhere else and I go and mess them up.