![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tree
为不为
这个作者很懒,什么都没留下…
展开
-
java 树的应用
package Tree;/** * Created by gmy on 2017/6/19. */public class Solution { public TreeNode addOneRow(TreeNode t,int v,int d){ if(d==1){ TreeNode n=new TreeNode(v);原创 2017-06-19 11:26:09 · 660 阅读 · 0 评论 -
最短路径及最大树的应用
Dijkstra算法:贪心算法的应用1: function Dijkstra(Graph, source):2: for each vertex v in Graph: // Initialization3: dist[v] := infinity // initial distance from source to vertex v is set to infin原创 2017-09-30 14:28:13 · 303 阅读 · 0 评论