![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 77
bluerone88
这个作者很懒,什么都没留下…
展开
-
一张图解释链表翻转
附上递归的算法: LinkList ReverseLinkList( pNode PreNode, pNode CurrentNode ) { if(!CurrentNode) /*如果当前节点指针为空,则返回NULL,此种情况只有在*/ return NULL; /*链表头指针为空时才可能执行到*/ if(!CurrentNode->next) /*如果下一节点指针为空,则将原创 2012-05-16 11:26:25 · 627 阅读 · 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 · 1457 阅读 · 0 评论