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.
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.
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!
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)
Late reply, but you subtract one number from the "num_pill" since there exist only one space/distance in between two pillars. Same as all real life objects, there exist only one space in between two objects.
This comment is hidden because it contains spoiler information about the solution
The instructions are not clear enough. It should've stated that the user has to find a single character online that turns into two or more character when uppercased or lowercased. Giving one example that can't be used to solve the problem would also be great, but instead the instructions focus too much on how .upper() and .lower() work, which is not what the user has to do.