上一页 1 ··· 3 4 5 6 7
摘要: 选择排序算法 C#代码如下: using System; namespace AlgorithmDemo { class Program { static void Main(string[] args) { int[] arr = new int[10]; for (int i = 0; i < 阅读全文
posted @ 2020-06-25 15:25 星仔007 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 经典冒泡排序算法 using System; using System.Threading.Tasks; namespace SingletonDemo { class Program { static void Main(string[] args) { int[] arr = new int[1 阅读全文
posted @ 2020-06-25 14:27 星仔007 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 折半插入算法、直接插入算法、希尔排序算法如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 阅读全文
posted @ 2019-12-18 11:15 星仔007 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 线性链表的基本操作,代码如下: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 name 阅读全文
posted @ 2019-12-13 17:53 星仔007 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 汉诺塔大家都不陌生,每次复习相同的知识总有不同的感悟,感觉就是进了一小步。这次找了遍文章,内容如下: 这个移动盘的问题,分析:假如我们的目的就是Hanoi(n,x,y,z);表示n个盘片 并且都在x处, 我们是可以借助y把n个盘片放到z上,并且不能出现大盘片在小盘片上面的情况 因此我们可以分解问题, 阅读全文
posted @ 2019-12-11 17:40 星仔007 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 当使用委托时,一般会出现两种角色:广播者(broadcaster)和订阅者(subscriber)。广播者是包含委托字段的类型,它通过调用委托决定何时进行广播。而订阅者是方法的目标接收者。订阅者通过在广播者的委托上调用+=和-=来决定何时开始监听而何时监听结束。订阅者不知道也不会干涉其他的订阅者。而 阅读全文
posted @ 2019-11-21 11:04 星仔007 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7