算法
文章平均质量分 77
bluerone88
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
一张图解释链表翻转
附上递归的算法:LinkList ReverseLinkList( pNode PreNode, pNode CurrentNode ) { if(!CurrentNode) /*如果当前节点指针为空,则返回NULL,此种情况只有在*/ return NULL; /*链表头指针为空时才可能执行到*/ if(!CurrentNode->next) /*如果下一节点指针为空,则将原创 2012-05-16 11:26:25 · 676 阅读 · 0 评论 -
JavaScript Build Tree Data Structure Using Array
function Tree(name,parent,child){ this.name = name; this.parent = parent || ''; this.children = child || []; this.addNode = function (parent){ this.children = parent; } this.addChild = function (child原创 2014-05-10 04:03:41 · 1537 阅读 · 0 评论
分享