
算法
文章平均质量分 63
helinsen
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
组合问题(从M个不同字符中任取N个字符的所有组合)
#include void select(char* str, int len, char* result, int start, int curr, int dest){ if (curr == dest) puts(result); else { int i; for (i = start; len - i >= dest-curr ; ++i) {//len - i原创 2013-06-20 13:31:20 · 1599 阅读 · 0 评论 -
二叉树汇总
版权所有,转载请注明出处,谢谢!http://blog.youkuaiyun.com/walkinginthewind/article/details/7518888树是一种比较重要的数据结构,尤其是二叉树。二叉树是一种特殊的树,在二叉树中每个节点最多有两个子节点,一般称为左子节点和右子节点(或左孩子和右孩子),并且二叉树的子树有左右之分,其次序不能任意颠倒。二叉树是递归定义的,因此,与二叉树转载 2013-06-20 18:13:48 · 526 阅读 · 0 评论 -
二叉树的非递归实现
http://www.cnblogs.com/dolphin0520/archive/2011/08/25/2153720.html转载 2013-06-21 10:59:40 · 543 阅读 · 0 评论