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.
Convert [dist] from meters to centimeters, don't count two pillars from the [num_pill] and find the [width] of the rest of the pillars.
I can't say anything more or else I would give away the answer.
This isn't any better
Instead of saying "Given a number n, return the number of positive odd numbers below n, EASY!", I would rephrase it to "Return the total amount of odd numbers inside the range of 'n'.".
Instead of saying "I'm dumb" say "I'm smart, but I can also be smarter"
Even though it's asking to rewrite the code, this is easier to understand, uses fewer lines of code and is simpler. In my opinion, this is a perfect solution since it teaches you what is most efficient instead of just doing what the problem asks.
Yea I didn't know either, I spent too much time this
The radius is about the bottle, not the cube.
Correct me if I'm wrong, but the word "radius" only applies to circular shaped objects not cuboid shaped objects like the ice brick.
I didn't even know about ".get()", thanks for teaching me it!
I would rewrite it to just "Find the radius of the largest circle that fits inside a regular polygon." since the whole working for a box making company just adds confusion.
Genius! I hate and admire you for being so smart!
Hi armM00, I'm sorry to hear that you weren't happy with this kata. I future you can downvote katas or skip them instead of taking to the comments. I would also suggest trying some more katas and finding ones that you enjoy :)
This comment is hidden because it contains spoiler information about the solution
I personally would rewrite it to something down the lines of: "Everytime the first letter appears in the string, the second letter has to come alongside it. If not, then return 'False'."
I personally would've rewritten it to:
You're measuring pillars. The distance between the pillars, and the width of the pillars are the same.
Your function will use these arguments in the following way:
num_pill = number of pillars;
dist = distance between pillars (Each one is measured in meters);
width = width of each pillar (Each one is measured in centimeters, and you must exclude the first and last pillar).
Calculate the distance between the first and the last pillar in centimeters.
Example: num_pill(11), dist(15), width(30) equals (15270)
Loading more items...