You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/g0101_0200/s0120_triangle/readme.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,14 @@ For each step, you may move to an adjacent number of the row below. More formall
12
12
13
13
**Output:** 11
14
14
15
-
**Explanation:** The triangle looks like: <ins>2</ins> <ins>3</ins> 4 6 <ins>5</ins> 7 4 <ins>1</ins> 8 3 The minimum path sum from top to bottom is 2 + 3 + 5 + 1 = 11 (underlined above).
15
+
**Explanation:**
16
+
17
+
The triangle looks like:
18
+
2
19
+
3 4
20
+
6 5 7
21
+
4 1 8 3
22
+
The minimum path sum from top to bottom is 2 + 3 + 5 + 1 = 11 (underlined above).
16
23
17
24
**Example 2:**
18
25
@@ -27,4 +34,4 @@ For each step, you may move to an adjacent number of the row below. More formall
0 commit comments