We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
can someone give me a hint on how the calculation did on the 3x2x2? because my algorithm gives me 32 cubes to fully cover this, while one the problem page it says 46.
by the way my algorithm for this: 2*(x*y + y*z + z*x), x,y,z is the with, height and depth of the object.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #126: Cuboid layers
You are viewing a single comment's thread. Return to all comments →
can someone give me a hint on how the calculation did on the 3x2x2? because my algorithm gives me 32 cubes to fully cover this, while one the problem page it says 46. by the way my algorithm for this: 2*(x*y + y*z + z*x), x,y,z is the with, height and depth of the object.