摘要: C++代码如下: #include <iostream> #include <string> #include <cctype> using namespace std; int main() { string str = ""; while (cin >> str) { if (isdigit(s 阅读全文
posted @ 2020-07-28 21:55 repinkply 阅读(360) 评论(0) 推荐(0)
摘要: 一:解题思路 Time:O(n*log(n)) Space:O(n) 二:完整代码示例 (C++版和Java版) #include <iostream> #include <vector> #include <string> #include <map> #include <algorithm> u 阅读全文
posted @ 2020-07-28 16:36 repinkply 阅读(285) 评论(0) 推荐(0)