徐尚Alan
徐尚Alan
全部文章
分类
归档
标签
去牛客网
登录
/
注册
徐尚Alan的博客
TA的专栏
29篇文章
0人订阅
华为机试题解
29篇文章
12人学习
全部文章
(共40篇)
题解 | 小红书推荐系统
第一轮第一版(不完整) #include <algorithm> #include <iostream> #include <sstream> #include <string> #include <unordered_map> #incl...
2025-09-08
0
0
题解 | 小苯送礼物
第一轮第一版(0/10) #include <algorithm> #include <iostream> #include <vector> using namespace std; struct Fans{ int id; int like;...
2025-09-08
0
3
题解 | 分数线划定
第一轮第一版(编译错误) #include <algorithm> #include <iostream> #include <map> #include <string> #include <unordered_map> #include...
2025-09-08
0
5
题解 | 计算某字符出现次数
第一轮最后一版(AC) #include <algorithm> #include <cctype> #include <iostream> #include <string> using namespace std; int main() { ...
2025-09-07
0
7
题解 | 字符串最后一个单词的长度
第一轮最后一版(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
6
题解 | 字符串加解密
第一版(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
首页
上一页
1
2
3
4
下一页
末页