1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-13 19:31:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

add leetcode problem-cn part2

This commit is contained in:
2022-03-27 20:38:29 +08:00
parent 5a4fa6db12
commit 0fc7f4b734
1617 changed files with 134637 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<p>堆箱子。给你一堆n个箱子箱子宽 wi、深 di、高 hi。箱子不能翻转将箱子堆起来时下面箱子的宽度、高度和深度必须大于上面的箱子。实现一种方法搭出最高的一堆箱子。箱堆的高度为每个箱子高度的总和。</p>
<p>输入使用数组<code>[wi, di, hi]</code>表示每个箱子。</p>
<p><strong>示例1:</strong></p>
<pre><strong> 输入</strong>box = [[1, 1, 1], [2, 2, 2], [3, 3, 3]]
<strong> 输出</strong>6
</pre>
<p><strong>示例2:</strong></p>
<pre><strong> 输入</strong>box = [[1, 1, 1], [2, 3, 4], [2, 6, 7], [3, 4, 5]]
<strong> 输出</strong>10
</pre>
<p><strong>提示:</strong></p>
<ol>
<li>箱子的数目不大于3000个。</li>
</ol>