本篇博客为大家整理华为 OD 考友反馈 C 卷抽中题,经过 1 个的考友复盘,目前已经收录 100+ 题目,预计在有 2 周可以收集完整。
所有题目,都有考友截图反馈,同时欢迎大家机考过后,提供橡皮擦真题,获取题解
订阅专栏,也可获取未公开的题目(原因是解题组还没有写完题解)
由于 C 卷考试更加严格,可拍照发送题目,效果如下。D 卷属于 C 卷系列,比 C 卷多了双机位,用于特殊考友~
想要获取华为 OD 统一考试 C & D 卷,可提前订阅专栏
订阅专栏,永久阅读,C & D 卷也会同步更新到专栏内,无需二次订阅。
特别提醒,订阅专栏前一定要看好题解语言哦~
- 华为 OD 机考 Python:https://blog.csdn.net/hihell/category_12199275.html
- 华为 OD 机考 C++ :https://blog.csdn.net/hihell/category_12199283.html
- 华为 OD 机考真 C 语言: https://blog.csdn.net/hihell/category_12225286.html
- 华为 OD 机考 JAVA :https://blog.csdn.net/hihell/category_12201821.html
- 华为 OD 机考 JS: https://blog.csdn.net/hihell/category_12201825.html
- 华为 OD 机考 Golang: https://blog.csdn.net/hihell/category_12231589.html
华为 OD 机考 C 卷 100 分抽中题目(最全真题库)
序号 | 题目 | 题解清单 |
---|---|---|
1 | 字符串序列判定(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129548118 Python 解法:https://dream.blog.csdn.net/article/details/134462756 C++ 解法:https://dream.blog.csdn.net/article/details/134468682 C 解法:https://dream.blog.csdn.net/article/details/134468710 JS 解法:https://dream.blog.csdn.net/article/details/134468721 |
2 | 整数对最小和(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129699194 Python 解法:https://dream.blog.csdn.net/article/details/129132706 C++ 解法:https://dream.blog.csdn.net/article/details/129271313 C 解法:https://dream.blog.csdn.net/article/details/129381246 JS 解法:https://dream.blog.csdn.net/article/details/129446820 |
3 | 找座位(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134546230 Python 解法:https://dream.blog.csdn.net/article/details/134546211 C++ 解法:https://dream.blog.csdn.net/article/details/134546270 C 解法:https://dream.blog.csdn.net/article/details/134546313 JS 解法:https://dream.blog.csdn.net/article/details/134546334 |
4 | 密码输入检测(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134524556 Python 解法:https://dream.blog.csdn.net/article/details/134524519 C++ 解法:https://dream.blog.csdn.net/article/details/134524579 C 解法:https://dream.blog.csdn.net/article/details/134524611 JS 解法:https://dream.blog.csdn.net/article/details/134524654 |
5 | 最长连续子串,求满足条件的最长子串的长度(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129487571 Python 解法:https://dream.blog.csdn.net/article/details/129004764 C++ 解法:https://dream.blog.csdn.net/article/details/129200538 C 解法:https://dream.blog.csdn.net/article/details/129344269 JS 解法:https://dream.blog.csdn.net/article/details/129114603 |
6 | 最长的指定瑕疵度的元音子串(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134393329 Python 解法:https://dream.blog.csdn.net/article/details/134393298 C++ 解法:https://dream.blog.csdn.net/article/details/134393361 C 解法:https://dream.blog.csdn.net/article/details/134393410 JS 解法:https://dream.blog.csdn.net/article/details/134393468 |
7 | 众数和中位数(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129364851 Python 解法:https://dream.blog.csdn.net/article/details/128990011 C++ 解法:https://dream.blog.csdn.net/article/details/129171438 C 解法:https://dream.blog.csdn.net/article/details/129329541 JS 解法:https://dream.blog.csdn.net/article/details/129105688 |
8 | 出租车计费,靠谱的车(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129246174 Python 解法:https://dream.blog.csdn.net/article/details/128986142 C++ 解法:https://dream.blog.csdn.net/article/details/129170907 C 解法:https://dream.blog.csdn.net/article/details/129324688 JS 解法:https://dream.blog.csdn.net/article/details/129094225 |
9 | 找朋友(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129487514 Python 解法:https://dream.blog.csdn.net/article/details/134493487 C++ 解法:https://dream.blog.csdn.net/article/details/134493500 C 解法:https://dream.blog.csdn.net/article/details/134493514 JS 解法:https://dream.blog.csdn.net/article/details/134493526 |
10 | 转盘寿司(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134778403 Python 解法:https://dream.blog.csdn.net/article/details/134778368 C++ 解法:https://dream.blog.csdn.net/article/details/134778440 C 解法:https://dream.blog.csdn.net/article/details/134778474 JS 解法:https://dream.blog.csdn.net/article/details/134778503 |
11 | 字符串摘要(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131130087 Python 解法:https://dream.blog.csdn.net/article/details/131130028 C++ 解法:https://dream.blog.csdn.net/article/details/131130118 C 解法:https://dream.blog.csdn.net/article/details/131130161 JS 解法:https://dream.blog.csdn.net/article/details/131130200 |
12 | 全量和已占用字符集,字符串统计(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129773642 Python 解法:https://dream.blog.csdn.net/article/details/129083382 C++ 解法:https://dream.blog.csdn.net/article/details/129221615 C 解法:https://dream.blog.csdn.net/article/details/129658137 JS 解法:https://dream.blog.csdn.net/article/details/129350975 |
13 | 最长合法表达式(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129907678 Python 解法:https://dream.blog.csdn.net/article/details/128995251 C++ 解法:https://dream.blog.csdn.net/article/details/129213078 C 解法:https://dream.blog.csdn.net/article/details/129213078 JS 解法:https://dream.blog.csdn.net/article/details/129114505 |
14 | 环中最长子串,最长子字符串的长度(一)(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129868143 Python 解法:https://dream.blog.csdn.net/article/details/129045129 C++ 解法:https://dream.blog.csdn.net/article/details/129201392 C 解法:https://dream.blog.csdn.net/article/details/129371337 JS 解法:https://dream.blog.csdn.net/article/details/129351691 |
15 | 最低位排序(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129487422 Python 解法:https://dream.blog.csdn.net/article/details/128995272 C++ 解法:https://dream.blog.csdn.net/article/details/129209977 C 解法:https://dream.blog.csdn.net/article/details/129344162 JS 解法:https://dream.blog.csdn.net/article/details/129114525 |
16 | 数组去重和排序,数组排序(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129241668 Python 解法:https://dream.blog.csdn.net/article/details/128985737 C++ 解法:https://dream.blog.csdn.net/article/details/129150747 C 解法:https://dream.blog.csdn.net/article/details/129272816 JS 解法:https://dream.blog.csdn.net/article/details/129017893 |
17 | 表演赛游戏分组(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134641443 Python 解法:https://dream.blog.csdn.net/article/details/134641422 C++ 解法:https://dream.blog.csdn.net/article/details/134641472 C 解法:https://dream.blog.csdn.net/article/details/134641494 JS 解法:https://dream.blog.csdn.net/article/details/134641509 |
18 | 内存冷热标记(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134688319 Python 解法:https://dream.blog.csdn.net/article/details/134688280 C++ 解法:https://dream.blog.csdn.net/article/details/134688346 C 解法:https://dream.blog.csdn.net/article/details/134688367 JS 解法:https://dream.blog.csdn.net/article/details/134688394 |
19 | 回收银饰,剩余银饰的重量 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134707692 Python 解法:https://dream.blog.csdn.net/article/details/134707599 C++ 解法:https://dream.blog.csdn.net/article/details/134707740 C 解法:https://dream.blog.csdn.net/article/details/134707770 JS 解法:https://dream.blog.csdn.net/article/details/134707816 |
20 | 模拟目录管理功能(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134874045 Python 解法:https://dream.blog.csdn.net/article/details/134874016 C++ 解法:https://dream.blog.csdn.net/article/details/134873988 C 解法:https://dream.blog.csdn.net/article/details/134874084 JS 解法:https://dream.blog.csdn.net/article/details/134874131 |
21 | 分配土地最大面积(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134643882 Python 解法:https://dream.blog.csdn.net/article/details/134643903 C++ 解法:https://dream.blog.csdn.net/article/details/134643855 C 解法:https://dream.blog.csdn.net/article/details/134643826 JS 解法:https://dream.blog.csdn.net/article/details/134643808 |
22 | 开源项目热度榜单(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134728246 Python 解法:https://dream.blog.csdn.net/article/details/134728218 C++ 解法:https://dream.blog.csdn.net/article/details/134728284 C 解法:https://dream.blog.csdn.net/article/details/134728325 JS 解法:https://dream.blog.csdn.net/article/details/134728372 |
23 | 机器人搬砖(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134594023 Python 解法:https://dream.blog.csdn.net/article/details/134593987 C++ 解法:https://dream.blog.csdn.net/article/details/134594051 C 解法:https://dream.blog.csdn.net/article/details/134594077 JS 解法:https://dream.blog.csdn.net/article/details/134594111 |
24 | 虚拟游戏理财(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134794204 Python 解法:https://dream.blog.csdn.net/article/details/134794161 C++ 解法:https://dream.blog.csdn.net/article/details/134794225 C 解法:https://dream.blog.csdn.net/article/details/134794255 JS 解法:https://dream.blog.csdn.net/article/details/134794283 |
25 | 按身高和体重排队,运动会(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129726621 Python 解法:https://dream.blog.csdn.net/article/details/129107998 C++ 解法:https://dream.blog.csdn.net/article/details/129250235 C 解法:https://dream.blog.csdn.net/article/details/129381374 JS 解法:https://dream.blog.csdn.net/article/details/129448107 |
26 | 分割均衡字符串(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134573875 Python 解法:https://dream.blog.csdn.net/article/details/134573853 C++ 解法:https://dream.blog.csdn.net/article/details/134573895 C 解法:https://dream.blog.csdn.net/article/details/134573915 JS 解法:https://dream.blog.csdn.net/article/details/134573932 |
27 | Family Day,园区参观路径(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134667453 Python 解法:https://dream.blog.csdn.net/article/details/134667494 C++ 解法:https://dream.blog.csdn.net/article/details/134667539 C 解法:https://dream.blog.csdn.net/article/details/134667572 JS 解法:https://dream.blog.csdn.net/article/details/134667597 |
28 | 字符串变换最小字符串(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129218196 Python 解法:https://dream.blog.csdn.net/article/details/134572981 C++ 解法:https://dream.blog.csdn.net/article/details/134573014 C 解法:https://dream.blog.csdn.net/article/details/134573043 JS 解法:https://dream.blog.csdn.net/article/details/134573072 |
29 | 查找接口成功率最优时间段(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129191224 Python 解法:https://dream.blog.csdn.net/article/details/134573211 C++ 解法:https://dream.blog.csdn.net/article/details/134573242 C 解法:https://dream.blog.csdn.net/article/details/134573272 JS 解法:https://dream.blog.csdn.net/article/details/134573300 |
30 | 机场航班调度程序 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134843849 Python 解法:https://dream.blog.csdn.net/article/details/134843809 C++ 解法:https://dream.blog.csdn.net/article/details/134843839 C 解法:https://dream.blog.csdn.net/article/details/134843862 JS 解法:https://dream.blog.csdn.net/article/details/134843872 |
31 | 用连续自然数之和来表达整数,整数分解(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129364406 Python 解法:https://dream.blog.csdn.net/article/details/128989935 C++ 解法:https://dream.blog.csdn.net/article/details/129171219 C 解法:https://dream.blog.csdn.net/article/details/132561231 JS 解法:https://dream.blog.csdn.net/article/details/129105630 |
32 | 积分奖励(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134595676 Python 解法:https://dream.blog.csdn.net/article/details/134595661 C++ 解法:https://dream.blog.csdn.net/article/details/134595690 C 解法:https://dream.blog.csdn.net/article/details/134595705 JS 解法:https://dream.blog.csdn.net/article/details/134595716 |
33 | 身高排序,寻找身高相近的小朋友 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129755666 Python 解法:https://dream.blog.csdn.net/article/details/129095308 C++ 解法:https://dream.blog.csdn.net/article/details/129232247 C 解法:https://dream.blog.csdn.net/article/details/129411722 JS 解法:https://dream.blog.csdn.net/article/details/129447051 |
34 | 最富裕的小家庭的财富和(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134637375 Python 解法:https://dream.blog.csdn.net/article/details/134637352 C++ 解法:https://dream.blog.csdn.net/article/details/134637396 C 解法:https://dream.blog.csdn.net/article/details/134637414 JS 解法:https://dream.blog.csdn.net/article/details/134637430 |
35 | 孙悟空吃蟠桃(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134639410 Python 解法:https://dream.blog.csdn.net/article/details/134639390 C++ 解法:https://dream.blog.csdn.net/article/details/134639436 C 解法:https://dream.blog.csdn.net/article/details/134639455 JS 解法:https://dream.blog.csdn.net/article/details/134639486 |
36 | 考勤信息,员工考勤(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129726998 Python 解法:https://dream.blog.csdn.net/article/details/129107941 C++ 解法:https://dream.blog.csdn.net/article/details/134639960 C 解法:https://dream.blog.csdn.net/article/details/134639982 JS 解法:https://dream.blog.csdn.net/article/details/129447794 |
37 | 围棋气数(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134660628 Python 解法:https://dream.blog.csdn.net/article/details/134660654 C++ 解法:https://dream.blog.csdn.net/article/details/134660703 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/134660743 |
38 | GPU 调度,执行时长(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129759697 Python 解法:https://dream.blog.csdn.net/article/details/129088329 C++ 解法:https://dream.blog.csdn.net/article/details/129232393 C 解法:https://dream.blog.csdn.net/article/details/129411591 JS 解法:https://dream.blog.csdn.net/article/details/129350727 |
39 | 去重求和,最大 N 个数与最小 N 个数的和(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129805760 Python 解法:https://dream.blog.csdn.net/article/details/129075131 C++ 解法:https://dream.blog.csdn.net/article/details/129221707 C 解法:https://dream.blog.csdn.net/article/details/129373384 JS 解法:https://dream.blog.csdn.net/article/details/129351182 |
40 | RSA 加密算法,素数之积(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129826695 Python 解法:https://dream.blog.csdn.net/article/details/129066950 C++ 解法:https://dream.blog.csdn.net/article/details/129201838 C 解法:https://dream.blog.csdn.net/article/details/129371383 JS 解法:https://dream.blog.csdn.net/article/details/129351369 |
41 | 最少停车数(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129889754 Python 解法:https://dream.blog.csdn.net/article/details/129031311 C++ 解法:https://dream.blog.csdn.net/article/details/129201230 C 解法:https://dream.blog.csdn.net/article/details/129371266 JS 解法:https://dream.blog.csdn.net/article/details/129351793 |
42 | 能力组队,求最多可以派出多少支团队(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129741910 Python 解法:https://dream.blog.csdn.net/article/details/129095363 C++ 解法:https://dream.blog.csdn.net/article/details/129232142 C 解法:https://dream.blog.csdn.net/article/details/129411392 JS 解法:https://dream.blog.csdn.net/article/details/129447302 |
43 | 分班,找出同班小朋友(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129773624 Python 解法:https://dream.blog.csdn.net/article/details/129083446 C++ 解法:https://dream.blog.csdn.net/article/details/129221589 C 解法:https://dream.blog.csdn.net/article/details/129482379 JS 解法:https://dream.blog.csdn.net/article/details/129350859 |
44 | 玩牌高手(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129218145 Python 解法:https://dream.blog.csdn.net/article/details/129103156 C++ 解法:https://dream.blog.csdn.net/article/details/129250148 C 解法:https://dream.blog.csdn.net/article/details/129411333 JS 解法:https://dream.blog.csdn.net/article/details/129447653 |
45 | 英文输入法(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129412007 Python 解法:https://dream.blog.csdn.net/article/details/129075188 C++ 解法:https://dream.blog.csdn.net/article/details/129221680 C 解法:https://dream.blog.csdn.net/article/details/129373369 JS 解法:https://dream.blog.csdn.net/article/details/129351108 |
46 | 最大可购买的宝石数量(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134682674 Python 解法:https://dream.blog.csdn.net/article/details/134682640 C++ 解法:https://dream.blog.csdn.net/article/details/134682703 C 解法:https://dream.blog.csdn.net/article/details/134682726 JS 解法:https://dream.blog.csdn.net/article/details/134682759 |
47 | 跳房子 1(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134028018 Python 解法:https://dream.blog.csdn.net/article/details/134027982 C++ 解法:https://dream.blog.csdn.net/article/details/134028066 C 解法:https://dream.blog.csdn.net/article/details/134031269 JS 解法:https://dream.blog.csdn.net/article/details/134031368 |
48 | 石头剪刀布游戏(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134794577 Python 解法:https://dream.blog.csdn.net/article/details/134794555 C++ 解法:https://dream.blog.csdn.net/article/details/134794597 C 解法:https://dream.blog.csdn.net/article/details/134794622 JS 解法:https://dream.blog.csdn.net/article/details/134794641 |
49 | 悄悄话花费的时间(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134685255 Python 解法:https://dream.blog.csdn.net/article/details/134685236 C++ 解法:https://dream.blog.csdn.net/article/details/134685281 C 解法:https://dream.blog.csdn.net/article/details/134685324 JS 解法:https://dream.blog.csdn.net/article/details/134685352 |
50 | 学生排名,智能成绩表(新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
51 | 攀登者1,攀登最高峰(新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
52 | 来自异国的客人(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134772221 Python 解法:https://dream.blog.csdn.net/article/details/134772203 C++ 解法:https://dream.blog.csdn.net/article/details/134772236 C 解法:https://dream.blog.csdn.net/article/details/134772254 JS 解法:https://dream.blog.csdn.net/article/details/134772263 |
53 | 分披萨(新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
54 | API集群负载统计(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134706154 Python 解法:https://dream.blog.csdn.net/article/details/134706127 C++ 解法:https://dream.blog.csdn.net/article/details/134706182 C 解法: JS 解法: |
55 | 小明找位置(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134711624 Python 解法:https://dream.blog.csdn.net/article/details/134711582 C++ 解法:https://dream.blog.csdn.net/article/details/134711660 C 解法:https://dream.blog.csdn.net/article/details/134711682 JS 解法:https://dream.blog.csdn.net/article/details/134711715 |
56 | 重组字符串, 字符串分割(二)(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129826718 Python 解法:https://dream.blog.csdn.net/article/details/129067124 C++ 解法:https://dream.blog.csdn.net/article/details/129202517 C 解法:https://dream.blog.csdn.net/article/details/129373404 JS 解法:https://dream.blog.csdn.net/article/details/129351238 |
57 | 字符串筛选排序,第 K 个最小码值的字母(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129699065 Python 解法:https://dream.blog.csdn.net/article/details/129132826 C++ 解法:https://dream.blog.csdn.net/article/details/129271209 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/129446949 |
58 | 第 k 长子串,连续字母长度(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129907644 Python 解法:https://dream.blog.csdn.net/article/details/129018322 C++ 解法:https://dream.blog.csdn.net/article/details/129200739 C 解法:https://dream.blog.csdn.net/article/details/129346488 JS 解法:https://dream.blog.csdn.net/article/details/129163515 |
59 | 拼接 URL(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129903659 Python 解法:https://dream.blog.csdn.net/article/details/129023781 C++ 解法:https://dream.blog.csdn.net/article/details/129201077 C 解法:https://dream.blog.csdn.net/article/details/129346420 JS 解法:https://dream.blog.csdn.net/article/details/129163807 |
60 | 寻找连续区间,数组连续和(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129726815 Python 解法:https://dream.blog.csdn.net/article/details/129107978 C++ 解法:https://dream.blog.csdn.net/article/details/129250268 C 解法:https://dream.blog.csdn.net/article/details/129411757 JS 解法:https://dream.blog.csdn.net/article/details/129448040 |
61 | 最少停车数,停车场统计(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129889754 Python 解法:https://dream.blog.csdn.net/article/details/129031311 C++ 解法:https://dream.blog.csdn.net/article/details/129201230 C 解法:https://dream.blog.csdn.net/article/details/129371266 JS 解法:https://dream.blog.csdn.net/article/details/129351793 |
62 | 绘图机器(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129868133 Python 解法:https://dream.blog.csdn.net/article/details/129052624 C++ 解法:https://dream.blog.csdn.net/article/details/129201407 C 解法:https://dream.blog.csdn.net/article/details/129371327 JS 解法:https://dream.blog.csdn.net/article/details/129351678 |
63 | CPU 算力分配(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134759582 Python 解法:https://dream.blog.csdn.net/article/details/134759572 C++ 解法:https://dream.blog.csdn.net/article/details/134759592 C 解法:https://dream.blog.csdn.net/article/details/134759612 JS 解法:https://dream.blog.csdn.net/article/details/134759619 |
64 | 高效货运(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134759362 Python 解法:https://dream.blog.csdn.net/article/details/134759337 C++ 解法:https://dream.blog.csdn.net/article/details/134759372 C 解法:https://dream.blog.csdn.net/article/details/134759389 JS 解法:https://dream.blog.csdn.net/article/details/134759404 |
65 | 生成哈夫曼树(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134758903 Python 解法:https://dream.blog.csdn.net/article/details/134758896 C++ 解法:https://dream.blog.csdn.net/article/details/134758918 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/134758939 |
66 | 火星文计算(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129006542 Python 解法:https://dream.blog.csdn.net/article/details/128985324 C++ 解法:https://dream.blog.csdn.net/article/details/129155091 C 解法:https://dream.blog.csdn.net/article/details/129272725 JS 解法:https://dream.blog.csdn.net/article/details/129006285 |
67 | 密码解密(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134800253 Python 解法:https://dream.blog.csdn.net/article/details/134800162 C++ 解法:https://dream.blog.csdn.net/article/details/134800290 C 解法:https://dream.blog.csdn.net/article/details/134800321 JS 解法:https://dream.blog.csdn.net/article/details/134800363 |
68 | 小明能到达的最大坐标值(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134825288 Python 解法:https://dream.blog.csdn.net/article/details/134825261 C++ 解法:https://dream.blog.csdn.net/article/details/134825313 C 解法:https://dream.blog.csdn.net/article/details/134825351 JS 解法:https://dream.blog.csdn.net/article/details/134825380 |
69 | 结对编程(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134825517 Python 解法:https://dream.blog.csdn.net/article/details/134825450 C++ 解法:https://dream.blog.csdn.net/article/details/134825569 C 解法:https://dream.blog.csdn.net/article/details/134825603 JS 解法:https://dream.blog.csdn.net/article/details/134825633 |
70 | 地图寻宝(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134843908 Python 解法:https://dream.blog.csdn.net/article/details/134843890 C++ 解法:https://dream.blog.csdn.net/article/details/134843927 |
71 | 多段线数据压缩(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134900674 Python 解法:https://dream.blog.csdn.net/article/details/134900657 C++ 解法:https://dream.blog.csdn.net/article/details/134900699 C 解法: JS 解法: |
72 | 测试用例执行计划(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134900776 Python 解法:https://dream.blog.csdn.net/article/details/134900757 C++ 解法:https://dream.blog.csdn.net/article/details/134900790 C 解法:https://dream.blog.csdn.net/article/details/134904127 JS 解法:https://dream.blog.csdn.net/article/details/134904135 |
73 | 灰度图恢复/存储 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134990069 Python 解法:https://dream.blog.csdn.net/article/details/134990031 C++ 解法:https://dream.blog.csdn.net/article/details/134990102 C 解法:https://dream.blog.csdn.net/article/details/134990157 JS 解法:https://dream.blog.csdn.net/article/details/134990199 |
74 | 密码解密 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
华为 OD 机考 C 卷 200 分抽中题目(最全真题库)
序号 | 题目 | 题解清单 |
---|---|---|
1 | 欢乐的周末,聚餐地点(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131557412 Python 解法:https://dream.blog.csdn.net/article/details/129023694 C++ 解法:https://dream.blog.csdn.net/article/details/129201014 C 解法:https://dream.blog.csdn.net/article/details/129346429 JS 解法:https://dream.blog.csdn.net/article/details/129163736 |
2 | 二叉树的广度优先遍历,二叉树层次遍历(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129903730 Python 解法:https://dream.blog.csdn.net/article/details/129019183 C++ 解法:https://dream.blog.csdn.net/article/details/129200955 C 解法:https://dream.blog.csdn.net/article/details/129890340 JS 解法:https://dream.blog.csdn.net/article/details/129163661 |
3 | 可以组成网络的服务器(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/132105149 Python 解法:https://dream.blog.csdn.net/article/details/132104995 C++ 解法:https://dream.blog.csdn.net/article/details/132105192 C 解法:https://dream.blog.csdn.net/article/details/132105234 JS 解法:https://dream.blog.csdn.net/article/details/132105343 |
4 | 电脑病毒感染(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134504029 Python 解法:https://dream.blog.csdn.net/article/details/134503991 C++ 解法:https://dream.blog.csdn.net/article/details/134504060 C 解法:https://dream.blog.csdn.net/article/details/134504091 JS 解法:https://dream.blog.csdn.net/article/details/134504118 |
5 | 数据单元的变量替换(新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
6 | MELON 的难题(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131900978 Python 解法:https://dream.blog.csdn.net/article/details/131900943 C++ 解法:https://dream.blog.csdn.net/article/details/131901002 C 解法:https://dream.blog.csdn.net/article/details/131901030 JS 解法:https://dream.blog.csdn.net/article/details/131901060 |
7 | 最多几个直角三角形(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/130537219 Python 解法:https://dream.blog.csdn.net/article/details/130537204 C++ 解法:https://dream.blog.csdn.net/article/details/130537232 C 解法:https://dream.blog.csdn.net/article/details/130537243 JS 解法:https://dream.blog.csdn.net/article/details/130537255 |
8 | 数组中第K大的数中的最小值 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134661513 Python 解法:https://dream.blog.csdn.net/article/details/134661551 C++ 解法:https://dream.blog.csdn.net/article/details/134661583 C 解法:https://dream.blog.csdn.net/article/details/134661624 JS 解法:https://dream.blog.csdn.net/article/details/134661657 |
9 | 找城市 ,城市聚集度(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131470150 Python 解法:https://dream.blog.csdn.net/article/details/131470189 C++ 解法:https://dream.blog.csdn.net/article/details/131470233 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/131470263 |
10 | 找最小数(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/130862040 Python 解法:https://dream.blog.csdn.net/article/details/130862079 C++ 解法:https://dream.blog.csdn.net/article/details/130862123 C 解法:https://dream.blog.csdn.net/article/details/130862155 JS 解法:https://dream.blog.csdn.net/article/details/130862181 |
11 | 找单词(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/132019140 Python 解法:https://dream.blog.csdn.net/article/details/129004861 C++ 解法:https://dream.blog.csdn.net/article/details/129200603 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/129114660 |
12 | 通过软盘拷贝文件(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131768553 Python 解法:https://dream.blog.csdn.net/article/details/131768515 C++ 解法:https://dream.blog.csdn.net/article/details/131768574 C 解法:https://dream.blog.csdn.net/article/details/131768603 JS 解法:https://dream.blog.csdn.net/article/details/131768641 |
13 | 跳房子 2(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131283858 Python 解法:https://dream.blog.csdn.net/article/details/131283800 C++ 解法:https://dream.blog.csdn.net/article/details/131283829 C 解法:https://dream.blog.csdn.net/article/details/131283882 JS 解法:https://dream.blog.csdn.net/article/details/131283912 |
14 | 中秋分月饼 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134750086 Python 解法:https://dream.blog.csdn.net/article/details/134750072 C++ 解法:https://dream.blog.csdn.net/article/details/134750058 C 解法:https://dream.blog.csdn.net/article/details/134750101 JS 解法:https://dream.blog.csdn.net/article/details/134750110 |
15 | 5G 网络建设 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
16 | 汽车初始油量 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
17 | 调整站位 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
18 | 跳马 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134887974 Python 解法:https://dream.blog.csdn.net/article/details/134887958 C++ 解法:https://dream.blog.csdn.net/article/details/134887985 |
19 | 计算三叉搜索树的高度 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134706908 Python 解法:https://dream.blog.csdn.net/article/details/134706872 C++ 解法:https://dream.blog.csdn.net/article/details/134706946 C 解法:https://dream.blog.csdn.net/article/details/134707002 JS 解法:https://dream.blog.csdn.net/article/details/134707054 |
20 | 二叉树计算 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
21 | 二叉树层次遍历,二叉树的广度优先遍历 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129903730 Python 解法:https://dream.blog.csdn.net/article/details/129019183 C++ 解法:https://dream.blog.csdn.net/article/details/129200955 C 解法:https://dream.blog.csdn.net/article/details/129890340 JS 解法:https://dream.blog.csdn.net/article/details/129163661 |
22 | 最长连续手牌(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134684742 Python 解法:https://dream.blog.csdn.net/article/details/134684712 C++ 解法:https://dream.blog.csdn.net/article/details/134684767 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/134684791 |
23 | 项目排期,最快完成所有工作的天数 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134772636 Python 解法:https://dream.blog.csdn.net/article/details/134772624 C++ 解法:https://dream.blog.csdn.net/article/details/134772646 C 解法:https://dream.blog.csdn.net/article/details/134772661 JS 解法:https://dream.blog.csdn.net/article/details/134772680 |
24 | 会议室占用时间 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134771808 Python 解法:https://dream.blog.csdn.net/article/details/134771799 C++ 解法:https://dream.blog.csdn.net/article/details/134771826 C 解法:https://dream.blog.csdn.net/article/details/134771844 JS 解法:https://dream.blog.csdn.net/article/details/134771861 |
25 | 文本统计分析 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134800961 Python 解法:https://dream.blog.csdn.net/article/details/134800934 C++ 解法:https://dream.blog.csdn.net/article/details/134801006 C 解法:https://dream.blog.csdn.net/article/details/134801032 JS 解法:https://dream.blog.csdn.net/article/details/134801074 |
26 | 部门人力分配 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134824689 Python 解法:https://dream.blog.csdn.net/article/details/134824661 C++ 解法:https://dream.blog.csdn.net/article/details/134824713 C 解法:https://dream.blog.csdn.net/article/details/134824755 JS 解法:https://dream.blog.csdn.net/article/details/134824784 |
27 | 攀登者2 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
28 | 考古学家 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/129246222 Python 解法:https://dream.blog.csdn.net/article/details/128985935 C++ 解法:https://dream.blog.csdn.net/article/details/129151966 C 解法:https://dream.blog.csdn.net/article/details/129299794 JS 解法:https://dream.blog.csdn.net/article/details/129034184 |
29 | 篮球比赛,篮球游戏(旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129699115 Python 解法:https://dream.blog.csdn.net/article/details/129132780 C++ 解法:https://dream.blog.csdn.net/article/details/129271244 C 解法:https://dream.blog.csdn.net/article/details/132454010 JS 解法:https://dream.blog.csdn.net/article/details/129446902 |
30 | 喊七,喊7的次数重排,抢七 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129191431 Python 解法:https://dream.blog.csdn.net/article/details/129052749 C++ 解法:https://dream.blog.csdn.net/article/details/129201570 C 解法:https://dream.blog.csdn.net/article/details/129700392 JS 解法:https://dream.blog.csdn.net/article/details/129351589 |
31 | 攀登者2 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
32 | 解密犯罪时间 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/131469952 Python 解法:https://dream.blog.csdn.net/article/details/129309745 C++ 解法:https://dream.blog.csdn.net/article/details/131469987 C 解法:https://dream.blog.csdn.net/article/details/131470023 JS 解法:https://dream.blog.csdn.net/article/details/131470050 |
33 | 员工派遣 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
34 | 字符串拼接 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
35 | 伐木工 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
36 | 信道分配 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134900131 Python 解法:https://dream.blog.csdn.net/article/details/134900120 C++ 解法:https://dream.blog.csdn.net/article/details/134900146 C 解法:https://dream.blog.csdn.net/article/details/134900167 JS 解法:https://dream.blog.csdn.net/article/details/134900184 |
37 | 图像物体的边界 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/134937316 Python 解法:https://dream.blog.csdn.net/article/details/134937298 C++ 解法:https://dream.blog.csdn.net/article/details/134937328 C 解法: JS 解法:https://dream.blog.csdn.net/article/details/134941563 |
38 | 精准核酸检测(新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134964390 Python 解法:https://dream.blog.csdn.net/article/details/134964129 C++ 解法:https://dream.blog.csdn.net/article/details/134964421 C 解法:https://dream.blog.csdn.net/article/details/134964730 JS 解法:https://dream.blog.csdn.net/article/details/134964765 |
39 | 贪吃的猴子 (新题) | JAVA 解法:https://dream.blog.csdn.net/article/details/134976839 Python 解法:https://dream.blog.csdn.net/article/details/134976817 C++ 解法:https://dream.blog.csdn.net/article/details/134976878 C 解法:https://dream.blog.csdn.net/article/details/134976900 JS 解法:https://dream.blog.csdn.net/article/details/134976933 |
40 | Wonderland (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
41 | 亲子游戏 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
42 | 文件缓存系统 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
43 | 小扇和小船的数字游戏 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
44 | 最小矩阵宽度 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
45 | 模拟数据序列化传输 (新题) | JAVA 解法: Python 解法: C++ 解法: C 解法: JS 解法: |
46 | 简易内存池 2 (旧题新用) | JAVA 解法:https://dream.blog.csdn.net/article/details/129259231 Python 解法:https://dream.blog.csdn.net/article/details/128985421 C++ 解法:https://dream.blog.csdn.net/article/details/129155150 C 解法:https://dream.blog.csdn.net/article/details/129272790 JS 解法:https://dream.blog.csdn.net/article/details/129006438 |
独家 GO 语言题解
- 华为 OD 机试用 go 实现 -【找座位】
- 字符串序列判定
- 华为 OD 机试用 go 实现 -【密码输入检测】
- 华为 OD 机试 Golang 解题 – 众数和中位数
- 华为 OD 机试 Golang 解题 – 出租车计费
- 华为 OD 机试用 go 实现 -【找朋友】
- 华为 OD 机试用 go 实现 -【可以组成网络的服务器】
- 华为OD机试Golang解题 – 最长合法表达式
- 华为OD机试用 go 实现 -【字符串变换最小字符串】
- 华为OD机试用 go 实现 -【查找接口成功率最优时间段】
- 华为OD机试用 go 实现 -【分割均衡字符串】
- 【华为OD机试B卷,GO题解独家】MELON 的难题
- 华为OD机试Golang解题 – 整数分解
- 华为OD机试用 go 实现 -【积分奖励】
- 华为OD机试 – 最多几个直角三角形(GO 语言解题)
- 华为OD机试用 go 实现 -【数组中第 K 大的数中的最小值(200 分)】
- 【华为OD机试B卷,GO题解独家】找城市 | 城市聚集度
- 【华为OD机试B卷,GO题解独家】找最小数
- 华为OD机试Golang解题 – 数组排序
- 【独家】华为OD机试 C 语言解题 – 最低位排序
- 华为OD机试用 go 实现 -【分班,找出同班小朋友】
- 华为OD机试用 go 实现 -【Family Day】
- 华为OD机试用 go 实现 -【最大可购买的宝石数量】
- 华为OD机试用 go 实现 -【跳房子 Ⅰ】
- 【华为OD机试B卷,GO题解独家】跳房子(2)
- 华为OD机试用 go 实现 -【内存冷热标记】
- 华为OD机试用 go 实现 -【计算三叉搜索树的高度】
- 华为OD机试用 go 实现 -【回收银饰,剩余银饰的重量】
- 华为OD机试用 go 实现 -【开源项目热榜】
- 华为OD机试用 go 实现 -【寿司转盘】
- 华为OD机试用 go 实现 -【项目排期,最快完成所有工作的天数】
- 华为OD机试用 go 实现 -【来自异国的客人】
- 华为OD机试用 go 实现 -【会议室占用时间】
- 华为OD机试用 go 实现 -【CPU 算力分配】
- 华为OD机试用 go 实现 -【高效货运】
- 华为OD机试用 go 实现 -【生成哈夫曼树】
- 华为OD机试用 go 实现 -【中秋分月饼】
- 华为OD机试Golang解题 – 火星文计算 2 | 包含思路
- 华为OD机试用 go 实现 -【虚拟游戏理财】
- 华为OD机试用 go 实现 -【密码解密】
- 华为OD机试用 go 实现 -【文本统计分析】
- 华为OD机试用 go 实现 -【部门人力分配(200 分)】
- 华为OD机试用 go 实现 -【小明能到达的最大坐标值】
- 华为OD机试用 go 实现 -【结对编程】
- 华为OD机试用 go 实现 -【机场航班调度程序】
- 华为OD机试Golang解题 – 考古学家
- 华为OD机试用 go 实现 -【篮球比赛】
- 【华为OD机试B卷,GO题解独家】解密犯罪时间
- 华为OD机试用 go 实现 -【信道分配 | 200 分】
- 华为OD机试用 go 实现 -【图像物体的边界 | 200 分】
- 华为OD机试用 go 实现 -【精准核酸检测 | 200 分】
- 华为OD机试用 go 实现 -【贪吃的猴子 | 200 分】
- 华为OD机试用 go 实现 -【灰度图恢复/存储】