【发布时间】:2012-01-29 11:17:19
【问题描述】:
在插入节点并完成后,排序算法代码将是什么?我尝试过冒泡排序,但我无法实现..
struct WordCounter {
char *word;
int word_count;
struct WordCounter *pNext; /* pointer to the next word counter in the list */
};
【问题讨论】:
-
这取决于您选择的排序算法。你试过什么?
-
@Don 代码示例和 Haskell 中的推理可能对 OP 没有帮助。
标签: c++ list sorting linked-list