7 kyu
Thinkful - Number Drills: Congo warehouses
1,666 of 2,540Grae-Drake
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Really, a waterfall of complains for using US/UK system? The ONLY fact you should know for this task is that 1 foot = 12 inches, and that fact is worth knowing, it think, at least to broaden your horizons.
Thanks for this Kata!
trash kata. use si system units next time. Nobody have time to figure out how this magic units works.
COBOL translation.
Approved!
Java translation: https://www.codewars.com/kumite/61e0432b748f9700181ebcc3?sel=61e0432b748f9700181ebcc3 Thanks for approval.
Approved
I wish it's in metric units :(
Don't use inches and feet. Only two countries in the world use that system and I really wouldn't have to explain the issues with it.
The kata has been approved, nobody is going to change it now.
1 foot is equal to 12 inches
C++ translation kumited
Approved some time ago
Ruby translation kumited
Also corrected 'inchs' in the description to 'inches'
Please review and approve
I found this a bit confusing. There seems to be a disconnect with deep/depth, vs wide/width. What I gathered is this: For a 3D object, dimensions are often given LxWxD or LxWxH - length by width by depth/height - where Length is the longer of the 2 horizontal dimensions and depth = height. From a math perspective I guess it should not matter, but from a conceptual perspective, it is confusing.
It should be 64 ft long, 32 ft wide, 16 ft high. Again with the math operations used, it should not matter, but to conceptualize it, it got a little confusing. However, it did make me investigate more, so kudos!
16 inches deep * 16 inches high * 16 inches wide does not equal 16 cubic inches. It equals 16^3 = 4096 cubic inches. Need to be careful with those units.
This comment has been hidden.
The 16 inch box is not evenly divisible by feet, so converting it from inches to feet will convert it from an integer to a float. That might give rise to floating point issues. It's also possible your logic and the floor division was wrong depending on how you implemented it even though it passed the initial tests.
As for metric, I'm trying to be a pain with conversion here!
What are ways to address floating point issue? I believe I'm having a similar issue where my function passes the three initial tests but does not pass the overall round of testing in the attempt. At the moment i'm using round() in my function. Is there a more precise method to use? I tried using decimal but that seems to make my results further off from the desired results.
Hey Grae-Drake, I've added JavaScript, Coffee and PHP translations :)
This kata made me think about how great metric system is. Still good exercise ;)
Hi, very nice kata! Could you please fix this sentence:
That
25740
is quite confusing :) I've been staring(!) at this for 10 minutes and tried to find some fancy math as I know only the metric system :)Regards,
suic
Bah, that's me fiddling with the examples again and not updating numbers everywhere :P
Thanks for catching.