随笔分类 - 数据结构与算法
03.队列
摘要:1 public class DecConvert 2 { 3 //N为需进行转换的数字,D为转换成的进制 4 public static string Convert(int N,int D) 5 { 6 if (D<2||D>16) 7 { 8 throw new ArgumentOutOfRa
阅读全文
02.单向链表
摘要:1 public class CirculLinkedList 2 { 3 //元素个数 4 private int count; 5 6 //尾指针 7 private Node tail; 8 9 //当前节点的前节点 10 private Node CurrPrev; 11 12 13 //增
阅读全文
01.线性表 ArrayList
摘要:1 public class MyArrayList 2 { 3 //容量 4 private const int _defaultCapacity = 4; 5 //存放数组元素 6 private object[] _items; 7 //数组大小 8 private int _size; 9
阅读全文
浙公网安备 33010602011771号