![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
手写底层结构专辑
junlaii
这个作者很懒,什么都没留下…
展开
-
求多源路径的最短路(使用Floyd算法)
思路:Floyd对算法最短路做枚举更新using System;using System.Collections.Generic;using System.Text;using static System.Console;namespace DataStructure.graph{ class Adjacency { static int INFINUTE = 99999; public int[,] graph_matrix; ..原创 2022-04-05 17:43:01 · 230 阅读 · 0 评论 -
自定义实现栈(使用链表)
代码如下:using System;using System.Collections.Generic;using System.Text;using static System.Console;namespace DataStructure{ class Nodes//链表节点类 { public int data; public Nodes next; public Nodes(int data) { ..原创 2022-04-05 14:46:57 · 512 阅读 · 0 评论 -
自定义实现堆栈(使用数组)
代码如下:using System;using System.Collections.Generic;using System.Text;using static System.Console;namespace DataStructure{ class ArrayStack//数组栈 { private int[] stack; private int top; public ArrayStack(int..原创 2022-04-05 14:43:37 · 203 阅读 · 0 评论