摘要:
题目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菌
阅读(198)
推荐(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菌
阅读(201)
推荐(0)
摘要:
题目如下图: 分析碰撞检测问题:程序实现
阅读全文
posted @ 2015-09-16 09:36
Coding菌
阅读(160)
推荐(0)
posted @ 2015-09-16 09:32
Coding菌
阅读(136)
推荐(0)
摘要:
题目如下图: 分析哈夫曼编码问题!程序实现#include #include #include using namespace std;const int MAXLEN = 100;typedef struct Huffmantree{ char ch; /*键值*/ ...
阅读全文
posted @ 2015-09-16 09:31
Coding菌
阅读(158)
推荐(0)
摘要:
题目如下图: 分析利用栈的思想: 具体思路见程序实现,详细注释!程序实现#include #include #include #include using namespace std;int getLen(string str){ if (str.empty()) ...
阅读全文
posted @ 2015-09-16 09:19
Coding菌
阅读(186)
推荐(0)