Data structures and algorithms
文章平均质量分 83
cqnkxy
这个作者很懒,什么都没留下…
展开
-
Something about Binary search tree
1.Because we want to do the recursion, which means we have to supply parameters. It's not appropriate to leave the work to users. So we'll encapsulate the details into our private member functions.原创 2015-09-20 02:23:57 · 189 阅读 · 0 评论 -
Permutation & Combination
1.Permutation:1.1 RecursionPerm(vec, beg, end)1.When beg = end, print;2.Otherwise swap the first element denoted by beg with following elements, then do Perm(vec, beg + 1, end):for(i = beg;原创 2015-10-11 09:33:05 · 466 阅读 · 0 评论