算法
yulianger5
这个作者很懒,什么都没留下…
展开
-
《Programming Challenges》Sulutions
Dynamic Programming 10131 - Is Bigger Smarter? | Solution 10069 - Distinct Subsequences | Solution 10154 - Weights and Measures | Solution 116 - Unidirectional TSP ...2010-04-13 19:06:26 · 136 阅读 · 0 评论 -
排序算法总结
首先是来自WIKI上的一些分类总结: 穩定的 泡沫排序 (bubble sort) — O(n 2 ) 鸡尾酒排序 (Cocktail sort, 雙向的冒泡排序) — O(n 2 ) 插入排序 (insertion sort)— O(n 2 ) 桶排序 (bucket sort)— O(n ); 需...2010-04-27 21:52:42 · 90 阅读 · 0 评论 -
二叉查找树
基本的二叉查找树代码: #include <iostream> using namespace std; struct node{ int data; struct node *parent; struct node *lchild; struct node *rchild; }; //输出 void display(struct node *p) {...原创 2010-05-10 12:44:12 · 82 阅读 · 0 评论