Skip to content

Commit 1daf9d9

Browse files
author
robot
committed
feat: 加入最小生成树例题
1 parent 4107a8f commit 1daf9d9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎src/codeTemplates/grapth.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ def bell_man(edges, s):
136136
},
137137
{
138138
text: "Kruskal(又称加边法,是一种最小生成树算法)",
139-
problems: [],
139+
problems: [
140+
{
141+
id: "min-cost-to-connect-all-points",
142+
title: "1584. 连接所有点的最小费用",
143+
},
144+
],
140145
codes: [
141146
{
142147
language: "py",
@@ -194,7 +199,12 @@ if __name__ == "__main__": # pragma: no cover
194199
},
195200
{
196201
text: "Prim(又称加点法,是一种最小生成树算法)",
197-
problems: [],
202+
problems: [
203+
{
204+
id: "min-cost-to-connect-all-points",
205+
title: "1584. 连接所有点的最小费用",
206+
},
207+
],
198208
codes: [
199209
{
200210
language: "py",

0 commit comments

Comments
 (0)