首页 > 其他 > 详细

[CareerCup] 9.10 Stack Boxes 垒箱子问题

时间:2015-09-30 06:16:05      阅读:145      评论:0      收藏:0      [点我收藏+]

 

9.10 You have a stack of n boxes, with widths w., heights hir and depths drThe boxes cannot be rotated and can only be stacked on top of one another if each box in the stack is strictly larger than the box above it in width, height, and depth. Implement a method to build the tallest stack possible, where the height of a stack is the sum of the heights of each box.

[CareerCup] 9.10 Stack Boxes 垒箱子问题

原文:http://www.cnblogs.com/grandyang/p/4847695.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!