随笔分类 -  练习题

记录一些平时写的有用代码
摘要:输入一个字符串,输出简单的压缩 1)单字符串压缩 : 输入:ABBBCCD , 输出AB3C2D 2)多字符串压缩 输入:AABCABCD,输出A(ABC)2D 1)压缩单个字符 #include <iostream> #include <vector> #include <algorithm> # 阅读全文
posted @ 2018-09-02 16:56 ray5wang 阅读(330) 评论(0) 推荐(0)
摘要:#include #include #include #include using namespace std; struct BinaryTree{ int weight; struct BinaryTree *left,*right; }; int subtree_count(const struct BinaryTree *root,int m){... 阅读全文
posted @ 2018-08-27 15:37 ray5wang 阅读(145) 评论(0) 推荐(0)