7 kyu

Thinkful - Number Drills: Congo warehouses

1,666 of 2,540Grae-Drake
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ptihiy Avatar

    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.

  • Denchik94 Avatar

    Thanks for this Kata!

  • cryingrock Avatar

    trash kata. use si system units next time. Nobody have time to figure out how this magic units works.

  • akar-0 Avatar
  • eb110 Avatar
  • farhanaditya Avatar

    I wish it's in metric units :(

  • mohragk Avatar

    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.

  • aikawaya Avatar

    1 foot is equal to 12 inches

  • SergeySinyavskiy Avatar
  • jebreen Avatar

    Ruby translation kumited

    Also corrected 'inchs' in the description to 'inches'

    Please review and approve

  • The Red Jinn Avatar

    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!

  • Clubie Avatar

    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.

  • FiscalCliffDiver Avatar

    This comment has been hidden.

  • St3f4n Avatar

    Hey Grae-Drake, I've added JavaScript, Coffee and PHP translations :)

  • MaLiN2223 Avatar

    This kata made me think about how great metric system is. Still good exercise ;)

  • suic Avatar

    Hi, very nice kata! Could you please fix this sentence:

    For example: a warehouse 32 feet long, 64 feet wide, and 16 feet high can hold 13,824 boxes because you can fit 24 boxes across, 48 boxes deep, and 12 boxes high, so box_capacity(32, 64, 16) should return 25740 ( <- :))

    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