小小程序媛  
得之坦然,失之淡然,顺其自然,争其必然

2015年9月16日

摘要: 题目Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row ar... 阅读全文
posted @ 2015-09-16 21:23 Coding菌 阅读(193) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up: Did you use... 阅读全文
posted @ 2015-09-16 19:27 Coding菌 阅读(192) 评论(0) 推荐(0) 编辑
 
摘要: 题目如下图: 分析碰撞检测问题:程序实现 阅读全文
posted @ 2015-09-16 09:36 Coding菌 阅读(154) 评论(0) 推荐(0) 编辑
 
摘要: 题目如下图: 分析程序实现 阅读全文
posted @ 2015-09-16 09:32 Coding菌 阅读(128) 评论(0) 推荐(0) 编辑
 
摘要: 题目如下图: 分析哈夫曼编码问题!程序实现#include #include #include using namespace std;const int MAXLEN = 100;typedef struct Huffmantree{ char ch; /*键值*/ ... 阅读全文
posted @ 2015-09-16 09:31 Coding菌 阅读(148) 评论(0) 推荐(0) 编辑
 
摘要: 题目如下图: 分析利用栈的思想: 具体思路见程序实现,详细注释!程序实现#include #include #include #include using namespace std;int getLen(string str){ if (str.empty()) ... 阅读全文
posted @ 2015-09-16 09:19 Coding菌 阅读(180) 评论(0) 推荐(0) 编辑