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.
Boxes through a Tunnel
Boxes through a Tunnel
Sort by
recency
|
165 Discussions
|
Please Login in order to post a comment
struct box { int length; int width; int height; };
typedef struct box box;
int get_volume(box b) { return b.length*b.width*b.height; }
int is_lower_than_max_height(box b) { if(b.height<41) return 1; return 0; }
Here is Boxes through a Tunnel solution in c - https://programmingoneonone.com/hackerrank-boxes-through-a-tunnel-solution-in-c.html