
Algorithms & Programming
会思考的草
这个作者很懒,什么都没留下…
展开
-
Some design tradeoffs
1,为什么STL stack的pop操作返回值类型是void,而不直接返回栈顶元素,用一个pop同时搞定top和pop两个函数的工作岂不是更加优雅高效?SGI的解释:One might wonder why pop() returns void, instead of value_type. That is, why must one usetop() andpop() to examin原创 2012-05-28 20:55:14 · 977 阅读 · 0 评论 -
编程竞赛常见的问题类型(Programming Contest Problem Types )
Hal Burch conducted an analysis over spring break of 1999 and made an amazing discovery: there are only 16 types of programming contest problems! Furthermore, the top several comprise almost 80% of th转载 2012-03-26 18:05:08 · 977 阅读 · 0 评论 -
面试题(二叉树相关)
// 二叉树有关的操作#include "stdafx.h"#include "CommonDataStruct.h"#include #include #include //////////////////////////////////////////////////////////////////////////// 给定二叉搜索树,转换成双向链表//原创 2012-03-26 16:56:11 · 2200 阅读 · 0 评论