徐尚Alan
徐尚Alan
全部文章
分类
归档
标签
去牛客网
登录
/
注册
徐尚Alan的博客
TA的专栏
29篇文章
0人订阅
华为机试题解
29篇文章
12人学习
全部文章
(共37篇)
题解 | 计算某字符出现次数
第一轮最后一版(AC) #include <algorithm> #include <cctype> #include <iostream> #include <string> using namespace std; int main() { ...
2025-09-07
0
6
题解 | 字符串最后一个单词的长度
第一轮最后一版(AC) #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { ...
2025-09-07
0
6
题解 | DNA序列
第一版(2/10) #include <iostream> #include <string> #include <vector> using namespace std; // 写一个函数计算字符串中的GC比例 double gcRatio(const st...
2025-09-06
0
5
题解 | 找出字符串中第一个只出现一次的字符
第一版(AC) #include <iostream> #include <vector> using namespace std; int main() { // 我们用一个数组来记录每个小写字母出现的次数 // 在符合条件的字母里我们从头找第一个符合要求...
2025-09-06
0
5
题解 | 字符串加解密
第一版(0/21) #include <iostream> using namespace std; string process1(string& a) { for (char c : a) { if ((c >= 'a' && ...
2025-09-06
0
7
题解 | 最长回文子串
第一版(14/15) #include <iostream> using namespace std; bool isOurPurpose(const string &a){ // int x = a.size() / 2; for(int i = 0; i &...
2025-09-06
0
8
题解 | 字符串字符匹配
第一版(0/20) #include <iostream> using namespace std; int main() { string s, t; cin >> s; cin >> t; int count = 0; ...
2025-09-06
0
6
题解 | 查找两个字符串a,b中的最长公共子串
第一版(有思路无实现) #include <iostream> #include <string> using namespace std; // 写一个函数来判断a是不是b的子串 bool isson(string &a, string &b){ } ...
2025-09-06
0
10
题解 | 查找兄弟单词
来自专栏
第一版(不完整) #include <algorithm> #include <iostream> #include <sstream> #include <vector> using namespace std; int main() { ...
2025-09-05
0
11
题解 | 字符串排序
来自专栏
第一版(0/22) #include <algorithm> #include <cctype> #include <iostream> #include <vector> using namespace std; int main() { ...
2025-09-05
0
8
首页
上一页
1
2
3
4
下一页
末页