算法与数据结构
闻人放歌
这个作者很懒,什么都没留下…
展开
-
C#数据结构与算法——简述两种递归算法
如下代码段,两种写法实现递归算法 class Algorithm:Singleton<Algorithm> { //算法一 不考虑堆栈溢出 public int RecursionNormal(int index) { if(index == 1) { ...原创 2018-06-30 11:54:45 · 208 阅读 · 0 评论 -
实现Collection类
将count等不适作为属性,而将其作为方法使用来重写代码。 g System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace BuildBasic { public class Coll...原创 2018-07-21 09:43:57 · 330 阅读 · 0 评论