Skip to content

Commit 52121b7

Browse files
committed
一刷892
1 parent bf3085b commit 52121b7

File tree

11 files changed

+107
-23
lines changed

11 files changed

+107
-23
lines changed

README.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6269,14 +6269,14 @@ TIP: **公众号的微信号是: `jikerizhi`**。__因为众所周知的原因
62696269
//|{doc_base_url}/0891-sum-of-subsequence-widths.adoc[题解]
62706270
//|Hard
62716271
//|
6272-
//
6273-
//|{counter:codes}
6274-
//|{leetcode_base_url}/surface-area-of-3d-shapes/[892. Surface Area of 3D Shapes^]
6275-
//|{source_base_url}/_0892_SurfaceAreaOf3DShapes.java[Java]
6276-
//|{doc_base_url}/0892-surface-area-of-3d-shapes.adoc[题解]
6277-
//|Easy
6278-
//|
6279-
//
6272+
6273+
|{counter:codes}
6274+
|{leetcode_base_url}/surface-area-of-3d-shapes/[892. Surface Area of 3D Shapes^]
6275+
|{source_base_url}/_0892_SurfaceAreaOf3DShapes.java[Java]
6276+
|{doc_base_url}/0892-surface-area-of-3d-shapes.adoc[题解]
6277+
|Easy
6278+
|
6279+
62806280
//|{counter:codes}
62816281
//|{leetcode_base_url}/groups-of-special-equivalent-strings/[893. Groups of Special-Equivalent Strings^]
62826282
//|{source_base_url}/_0893_GroupsOfSpecialEquivalentStrings.java[Java]

docs/0892-surface-area-of-3d-shapes.adoc

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@ Each value `v = grid[i][j]` represents a tower of `v` cubes placed on top of gri
99

1010
Return the total surface area of the resulting shapes.
1111

12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
2412
*Example 1:*
2513

2614
[subs="verbatim,quotes,macros"]
@@ -70,20 +58,49 @@ Return the total surface area of the resulting shapes.
7058
*Note:*
7159

7260

73-
* `1 <= N <= 50`
74-
* `0 <= grid[i][j] <= 50`
61+
* `1 \<= N \<= 50`
62+
* `0 \<= grid[i][j] \<= 50`
7563

64+
== 思路分析
7665

66+
这就是求立方体的表面积。
7767

68+
image::images/0892-01.png[{image_attr}]
7869

70+
image::images/0892-02.png[{image_attr}]
7971

72+
image::images/0892-03.png[{image_attr}]
8073

74+
image::images/0892-04.png[{image_attr}]
8175

76+
image::images/0892-05.png[{image_attr}]
8277

78+
计算各个方块柱子的表面积相加。
8379

8480
[[src-0892]]
81+
[tabs]
82+
====
83+
一刷::
84+
+
85+
--
8586
[{java_src_attr}]
8687
----
8788
include::{sourcedir}/_0892_SurfaceAreaOf3DShapes.java[tag=answer]
8889
----
90+
--
91+
92+
// 二刷::
93+
// +
94+
// --
95+
// [{java_src_attr}]
96+
// ----
97+
// include::{sourcedir}/_0892_SurfaceAreaOf3DShapes_2.java[tag=answer]
98+
// ----
99+
// --
100+
====
101+
102+
== 参考资料
103+
104+
. https://leetcode.cn/problems/surface-area-of-3d-shapes/solutions/1/shi-li-you-tu-you-zhen-xiang-jiang-jie-yi-kan-jiu-/[892. 三维形体的表面积 - 3ms, 有图有真相, 一看就明白, Java^]
105+
. https://leetcode.cn/problems/surface-area-of-3d-shapes/solutions/168669/san-wei-xing-ti-de-biao-mian-ji-by-leetcode-soluti/[892. 三维形体的表面积 - 官方题解有些懵逼^]
89106

docs/images/0892-01.png

125 KB
Loading

docs/images/0892-02.png

165 KB
Loading

docs/images/0892-03.png

234 KB
Loading

docs/images/0892-04.png

128 KB
Loading

docs/images/0892-05.png

154 KB
Loading

docs/images/0892-06.png

149 KB
Loading

docs/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ include::0876-middle-of-the-linked-list.adoc[leveloffset=+1]
18581858

18591859
// include::0891-sum-of-subsequence-widths.adoc[leveloffset=+1]
18601860

1861-
// include::0892-surface-area-of-3d-shapes.adoc[leveloffset=+1]
1861+
include::0892-surface-area-of-3d-shapes.adoc[leveloffset=+1]
18621862

18631863
// include::0893-groups-of-special-equivalent-strings.adoc[leveloffset=+1]
18641864

logbook/202406.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,11 @@
883883
|{doc_base_url}/1253-reconstruct-a-2-row-binary-matrix.adoc[题解]
884884
|⭕️ 贪心,为什么需要先减去 2 呢?
885885

886+
|{counter:codes}
887+
|{leetcode_base_url}/surface-area-of-3d-shapes/[892. Surface Area of 3D Shapes^]
888+
|{doc_base_url}/0892-surface-area-of-3d-shapes.adoc[题解]
889+
|✅ 计算几个柱子的面积
890+
886891

887892
|===
888893

0 commit comments

Comments
 (0)