华为外包机试题 答案示例
算法在广不在精,随遇而安,快乐常在。
经验在广不在精,高级在专,不在广。
全栈就是骗子空手套白狼,技多不压身就是谎言,其实就是让你卷。
术业有专攻,正道是沧桑。
c++ 算法汇总
第一节 链表
1.反转链表 https://www.cnblogs.com/sundayvc/p/16598319.html
2.C++——链表内指定区间反转 https://blog.csdn.net/ldm_666/article/details/118228505
3.链表中的节点每k个一组翻转 https://blog.csdn.net/weixin_46120107/article/details/126203107
4.合并两个排序的链表 https://blog.csdn.net/zxw20171828/article/details/123028702
5. 合并k个已排序的链表 https://blog.csdn.net/apple12_12/article/details/125980988
https://blog.csdn.net/ZHY_ERIC/article/details/123976788
6. 判断链表中是否有环 https://blog.csdn.net/MAX_VALUE/article/details/117930686
7. 链表中环的入口结点 https://blog.csdn.net/sunshine552/article/details/120629920
8. 链表中倒数最后k个结点 https://blog.csdn.net/yizhizainulii/article/details/122036390
9. 删除链表的倒数第n个节点 https://blog.csdn.net/weixin_41803339/article/details/121525656
10. 两个链表的第一个公共结点 https://blog.csdn.net/qq_36929361/article/details/104218056
https://www.cnblogs.com/lishanlei/p/10707681.html
11.【链表】链表相加 https://blog.csdn.net/m0_52043808/article/details/124424849
12. 单链表的排序 https://blog.csdn.net/qq_45917176/article/details/125535953
13. 判断一个链表是否为回文结构 https://blog.csdn.net/xueyushenzhou/article/details/121872554
14. 链表的奇偶重排 https://blog.csdn.net/Jason6620/article/details/126396863
15. 删除有序链表中重复的元素 https://blog.csdn.net/weixin_46503238/article/details/124671770
https://blog.csdn.net/Sophia2333333331/article/details/126262069
第二节 二分查找/排序
1. 二分查找 https://blog.csdn.net/weixin_47406709/article/details/125660759
2. 二维数组中的查找 https://www.cnblogs.com/Vince-Wu/p/13029259.html
3. 寻找峰值 https://blog.csdn.net/osillto/article/details/119654580
https://www.jianshu.com/p/4cb60625fb58
4. 数组中的逆序对 https://blog.csdn.net/lym940928/article/details/91354887
5. 旋转数组的最小数字 https://blog.csdn.net/weixin_43804406/article/details/107956124
6. 比较版本号 https://blog.csdn.net/zhizhengguan/article/details/124169832
https://blog.csdn.net/caoDanLife/article/details/125259118
第三节 二叉树
1. 二叉树的遍历 https://blog.csdn.net/u010414589/article/details/115415226
2. 按之字形顺序打印二叉树 https://blog.csdn.net/qq_35221523/article/details/110914483
https://blog.csdn.net/okfineyell/article/details/126533345
3. 二叉树的最大深度 https://www.cnblogs.com/sjjghsf/p/13494238.html
https://blog.csdn.net/qq_41219157/article/details/124160516
4. 二叉树中和为某一值的路径 https://blog.csdn.net/weixin_44262119/article/details/122239220
https://www.cnblogs.com/hapjin/p/5565221.html
5.二叉搜索树与双向链表 https://www.cnblogs.com/yi-hui/p/8983825.html
https://blog.csdn.net/Alanadle/article/details/122394116
6. 对称的二叉树 https://blog.csdn.net/qq_42138662/article/details/118060700
https://blog.csdn.net/Futureing/article/details/125327889
7. 合并二叉树 https://blog.csdn.net/weixin_45295612/article/details/125027357
https://blog.csdn.net/qq_43697646/article/details/122800163
8. 二叉树的镜像 https://blog.csdn.net/qq_43785075/article/details/124396174
https://blog.csdn.net/Bryan__/article/details/123162563
https://www.cnblogs.com/byteMemory/p/14957097.html
9. 判断是不是二叉搜索树 https://blog.csdn.net/ma2595162349/article/details/108353153
https://blog.csdn.net/Jason6620/article/details/126413669
https://blog.csdn.net/PMPWDF/article/details/104055877
10. 判断是不是完全二叉树 https://blog.csdn.net/yuiop123455/article/details/109542938
https://blog.csdn.net/xue_hua_c/article/details/126500570
11. 判断是不是平衡二叉树 https://blog.csdn.net/a1085653724/article/details/124394915
https://blog.csdn.net/hansionz/article/details/82745625
https://blog.csdn.net/Albert_weiku/article/details/125055422
12.二叉搜索树的最近公共祖先 https://blog.csdn.net/m0_56693499/article/details/124859780
https://blog.csdn.net/m0_56693499/article/details/124859780
13.在二叉树中找到两个节点的最近公共祖先 https://tool.4xseo.com/article/78611.html
https://blog.nowcoder.net/n/fdf6b90176c14bf1b9796eb0d994fae3
15. 序列化二叉树 https://blog.csdn.net/zjsru_Beginner/article/details/119851312
https://www.cnblogs.com/SunAlbert/p/13512236.html
https://www.jianshu.com/p/6c5bef0e6c92
16.重建二叉树 https://blog.csdn.net/weixin_42638946/article/details/121076287
https://blog.csdn.net/weixin_43164548/article/details/125777059
17. 输出二叉树的右视图 https://blog.csdn.net/weixin_39963192/article/details/115119704
https://blog.csdn.net/weixin_41803339/article/details/122155898
第四节 堆/栈/队列
堆/栈/队列HeapStackQueue
https://blog.csdn.net/qq_45672975/article/details/106881946
https://blog.csdn.net/weixin_60053402/article/details/127948110
https://www.jb51.net/article/161528.htm
https://blog.csdn.net/weijianjain/article/details/127976114
https://blog.csdn.net/qq_42363032/article/details/103845914
https://blog.csdn.net/YiYeZhiNian/article/details/121446312
https://blog.csdn.net/qq_36421001/article/details/123347947
https://blog.csdn.net/qq_36421001/article/details/123347947
https://blog.csdn.net/YiYeZhiNian/article/details/121446312
https://blog.csdn.net/qq135595696/article/details/126680366
https://blog.csdn.net/qq_62916508/article/details/131649536
https://blog.csdn.net/woody218/article/details/123318268
https://blog.csdn.net/qq_44878985/article/details/128356950
https://blog.csdn.net/weixin_37725502/article/details/79625447
https://blog.csdn.net/qq135595696/article/details/124974787
https://blog.csdn.net/xikangsoon/article/details/110581200
https://blog.csdn.net/Jeaten/article/details/108723758
https://blog.csdn.net/u012308776/article/details/38759185
https://blog.csdn.net/m0_37149062/article/details/122491312
https://blog.csdn.net/wjinjie/article/details/117480013
https://blog.csdn.net/weixin_42800268/article/details/108343667
https://blog.csdn.net/saxon_li/article/details/123722023
https://www.cnblogs.com/mshentaiBlog/p/15773703.html
https://blog.csdn.net/qq_41221520/article/details/107045915
https://blog.csdn.net/qq_40838478/article/details/118225149
https://blog.csdn.net/zhsy28/article/details/60470749
https://blog.csdn.net/qq_45767476/article/details/117249997
https://blog.csdn.net/calmreason/article/details/78163268
https://blog.csdn.net/qq_54388490/article/details/123742067
哈希
https://blog.csdn.net/zd454909951/article/details/119142864
https://blog.csdn.net/LJH132465/article/details/124551513
https://blog.csdn.net/sakeww/article/details/122760948
https://blog.csdn.net/qq_40552827/article/details/106276120
https://blog.csdn.net/Jeaten/article/details/108723217
https://blog.csdn.net/Fizz6018/article/details/107015251
https://blog.csdn.net/weixin_43883900/article/details/108433911
https://blog.csdn.net/Fizz6018/article/details/107201709/
https://blog.csdn.net/qq135595696/article/details/125107376
https://blog.csdn.net/weixin_43142797/article/details/105821062
https://blog.csdn.net/SCS199411/article/details/91972233
https://blog.csdn.net/weixin_43750513/article/details/106722986
https://blog.csdn.net/Panbk/article/details/128481020
https://blog.csdn.net/qq_29569843/article/details/108111542
https://blog.csdn.net/dwf1354046363/article/details/122992285
https://blog.csdn.net/qq135595696/article/details/126997825
https://blog.csdn.net/swety_gxy/article/details/106254633
https://blog.csdn.net/qq_34018840/article/details/93715701
https://blog.csdn.net/fengkeyleaf/article/details/106689535
https://blog.csdn.net/xupingkun000/article/details/90230607
https://blog.csdn.net/m0_57774651/article/details/128051166
https://blog.csdn.net/JMW1407/article/details/108665044
递归/回溯
https://blog.csdn.net/qq_45769627/article/details/105700513
https://blog.csdn.net/cysisu/article/details/105590007
https://blog.csdn.net/qq_35975367/article/details/110455325
https://www.cnblogs.com/Jozky/p/14075786.html
https://blog.csdn.net/cysisu/article/details/105590007
https://blog.nowcoder.net/n/da012ec4771841d78ad03be9c78c9a61
https://blog.csdn.net/qq_45769627/article/details/118423351
https://blog.csdn.net/mengxiangyuanfang/article/details/82763575
https://blog.csdn.net/x_zhaohu/article/details/52861858
https://blog.csdn.net/weixin_45401129/article/details/119731273
https://blog.csdn.net/qq_44867112/article/details/118103565
https://blog.csdn.net/weixin_43750513/article/details/106723911
https://blog.csdn.net/lcf0000/article/details/121720068
https://blog.csdn.net/neverthe/article/details/105341898
https://blog.csdn.net/m0_37864814/article/details/128378540
https://blog.csdn.net/CT_WJ/article/details/97032583
https://blog.csdn.net/zml66666/article/details/103077233
https://blog.csdn.net/Xavier_97/article/details/126807989
https://blog.csdn.net/weixin_52120741/article/details/115969138
https://blog.csdn.net/alicekizuna/article/details/108037533
https://blog.csdn.net/ldm_666/article/details/117303196
https://blog.csdn.net/weixin_43552197/article/details/108554739
https://blog.csdn.net/qq135595696/article/details/124635574
https://blog.csdn.net/qq_52269550/article/details/124297846
https://www.cnblogs.com/LJA001162/p/11334919.html
https://segmentfault.com/a/1190000021695276
https://segmentfault.com/a/1190000021684138
https://blog.csdn.net/m0_71229447/article/details/125956029
https://blog.csdn.net/cpb____/article/details/121502205
https://blog.csdn.net/qq_34018840/article/details/90293859
https://blog.csdn.net/qq_36421001/article/details/123815425
https://blog.csdn.net/weixin_40659011/article/details/98506685
https://blog.csdn.net/weixin_45629285/article/details/119670497
https://blog.csdn.net/weixin_44208324/article/details/104856061
https://blog.csdn.net/weixin_42157224/article/details/107619408
https://blog.csdn.net/weixin_43750513/article/details/107027497
https://blog.csdn.net/qq_24854861/article/details/107548025
https://blog.csdn.net/Zolewit/article/details/97961291
https://blog.csdn.net/qq_32805671/article/details/87075318
https://blog.csdn.net/qq_41221520/article/details/107397055
动态规划
https://blog.csdn.net/m0_71934846/article/details/129676902
跳台阶 Dynamic programming
https://blog.csdn.net/weixin_44225182/article/details/102469116
https://blog.csdn.net/qq135595696/article/details/124718506
https://blog.csdn.net/qq_39539470/article/details/82780442
https://blog.csdn.net/zhaitianbao/article/details/127764033
https://blog.csdn.net/Deft_MKJing/article/details/77092998
https://blog.csdn.net/weixin_44493195/article/details/106229950
https://blog.csdn.net/NaturalNumber/article/details/113139718
https://blog.csdn.net/NaturalNumber/article/details/113189033
http://wed.xjx100.cn/news/204888.html?action=onClick
https://blog.csdn.net/jsl123x/article/details/129968066
https://www.cnblogs.com/Jucw/p/15753787.html
https://blog.csdn.net/qq_43353709/article/details/91450426
https://blog.csdn.net/SYK000/article/details/120598073
https://blog.csdn.net/qq_41183949/article/details/106672852
https://blog.csdn.net/m0_62079294/article/details/130632665
https://blog.csdn.net/wutcxthu/article/details/120462708
https://blog.csdn.net/ldm_666/article/details/116564574
https://blog.csdn.net/qiangqiang103/article/details/124737519
https://blog.csdn.net/weixin_39860046/article/details/88982994
https://blog.csdn.net/qq_42351880/article/details/99208218
https://blog.csdn.net/qq_41884662/article/details/115607024
https://blog.csdn.net/class_nuli/article/details/131622678
https://blog.csdn.net/ldm_666/article/details/117196379
https://blog.csdn.net/weixin_52120741/article/details/115959863
https://blog.csdn.net/Eyebrowbeat/article/details/128295073
https://blog.csdn.net/weixin_48937140/article/details/121502048
https://blog.csdn.net/weixin_44279771/article/details/113339431
https://blog.csdn.net/wanna_wsl/article/details/69758988
https://verytoolz.com/blog/fdd0109d42/
https://blog.csdn.net/qq_36605433/article/details/104469985
https://blog.csdn.net/qq135595696/article/details/124878200
https://blog.csdn.net/weixin_43971252/article/details/104063490
https://www.cnblogs.com/buryinshadow/p/13661256.html
https://www.cnblogs.com/yang5sui/p/17210780.html
https://blog.csdn.net/Cosmoshhhyyy/article/details/128961925
https://blog.csdn.net/Zolewit/article/details/94755280
https://blog.csdn.net/qq_53763705/article/details/123905034
https://blog.csdn.net/SkeletonKing233/article/details/99542784
https://www.cnblogs.com/demc/p/16930176.html
https://blog.csdn.net/qq_43130569/article/details/104807952
https://blog.csdn.net/l_red_forest/article/details/120464736
https://blog.csdn.net/kzwb217/article/details/98727830
https://blog.csdn.net/qq135595696/article/details/124676598
https://cloud.tencent.com/developer/article/1695727
https://www.cnblogs.com/wanglei5205/p/8824301.html
https://blog.csdn.net/qq135595696/article/details/125648660
https://www.cnblogs.com/cicinnus/p/13227577.html、
https://blog.csdn.net/qq_41448334/article/details/86661089
https://blog.csdn.net/weixin_43973320/article/details/106576037
https://blog.csdn.net/qq_41448334/article/details/86661089
https://blog.csdn.net/Xavier_97/article/details/126809085
https://blog.csdn.net/zhouchenghao123/article/details/84204854
https://blog.csdn.net/qq_42609381/article/details/81114616
https://blog.csdn.net/qq_45732909/article/details/105518715
https://blog.csdn.net/coolsunxu/article/details/115749116
https://blog.csdn.net/calvinpaean/article/details/104011972
https://www.cnblogs.com/jiangzhongzhiwei/p/13259784.html
https://www.jianshu.com/p/55bed833cf04
https://www.freesion.com/article/47381449956/
https://www.codenong.com/cs109643450/
https://blog.csdn.net/coolsunxu/article/details/105856296
https://blog.csdn.net/qq_27060423/article/details/94141070
https://blog.csdn.net/Jeaten/article/details/108303947
match_utilTool
https://blog.csdn.net/luanzheng_365/article/details/65030028
https://blog.csdn.net/qq_38409301/article/details/126677586
https://blog.csdn.net/caroline_wendy/article/details/17319899
string split
https://zhuanlan.zhihu.com/p/426939341
https://www.jb51.net/article/251967.htm
regex description
https://www.cnblogs.com/yusenwu/p/5296835.html
https://vimsky.com/examples/detail/cpp-ex---basic_regex---class.html
https://blog.csdn.net/qq_17044529/article/details/82696474
https://blog.csdn.net/JXH_123/article/details/122911270
https://blog.csdn.net/lv1224/article/details/79903512
https://blog.csdn.net/lv1224/article/details/79903512
https://blog.csdn.net/qq_45732909/article/details/107121004
https://blog.csdn.net/weixin_43750513/article/details/106696570
https://blog.csdn.net/weixin_40850689/article/details/86664912
https://www.cnblogs.com/thefatcat/p/12895748.html
https://blog.csdn.net/qq135595696/article/details/126860788
https://www.bilibili.com/read/cv22253536
https://blog.csdn.net/qq_32523711/article/details/107824803
https://blog.csdn.net/STATEABC/article/details/125102646
https://blog.csdn.net/weixin_45863060/article/details/117987445
https://blog.csdn.net/qq_53830608/article/details/129930970
https://blog.csdn.net/Kuroyukineko/article/details/120133389
https://blog.csdn.net/qq_37299596/article/details/106746339
https://blog.csdn.net/qq_51447496/article/details/127115767
https://blog.csdn.net/qq_51447496/article/details/127115767
https://blog.csdn.net/m0_48069265/article/details/131715803
https://www.nowcoder.com/discuss/511285981375422464
https://www.nowcoder.com/discuss/511293126829465600?urlSource=sitemap
https://www.cnblogs.com/mshentaiBlog/p/15307068.html
https://www.jb51.net/article/218133.htm
https://www.jianshu.com/p/4e19ffc10cfa
http://www.cbww.cn/news/39285.shtml
字符串
字符串
1.java
2.
https://blog.csdn.net/demonstracy/article/details/129542972
https://blog.csdn.net/weixin_62264287/article/details/125430453
https://www.nowcoder.com/discuss/490824002248724480
https://blog.csdn.net/weixin_44791964/article/details/103793817
https://blog.csdn.net/m0_59163654/article/details/130978060
https://www.bilibili.com/read/cv15094861/
https://blog.csdn.net/SoulOH/article/details/81877995
https://blog.csdn.net/weixin_43848216/article/details/104475411
https://blog.csdn.net/Innocence02/article/details/127935304
https://blog.csdn.net/xcinkey/article/details/122851770
https://blog.csdn.net/weixin_44640001/article/details/128925558
https://blog.csdn.net/Xavier_97/article/details/126684009
https://blog.csdn.net/u014779536/article/details/119248009
http://imyhq.com/job/2051.html
1.
3.https://www.ngui.cc/el/3200500.html?action=onClick
https://blog.csdn.net/qq_35087425/article/details/110957340
https://www.mianshigee.com/note/detail/208890atb/
https://blog.csdn.net/simpleact/article/details/22580251
https://www.techiedelight.com/zh/validate-ip-address/
https://blog.csdn.net/ldm_666/article/details/116609610
https://blog.csdn.net/koori_145/article/details/107280253
https://blog.csdn.net/qq_61903556/article/details/122938737
https://blog.csdn.net/weixin_61009782/article/details/123511870
https://blog.csdn.net/weixin_30764883/article/details/98296557
https://blog.csdn.net/qq_45744615/article/details/108918401
https://blog.csdn.net/weixin_44820625/article/details/103125777
https://blog.csdn.net/weixin_43732607/article/details/90935955
https://blog.csdn.net/weixin_30343157/article/details/96175724
https://blog.csdn.net/qq_42794826/article/details/109169776
双指针
双指针
https://blog.csdn.net/Panbk/article/details/127439550
https://blog.csdn.net/puiopp63/article/details/128157593
https://blog.csdn.net/weixin_45629285/article/details/118225381
https://blog.csdn.net/Annabel_CM/article/details/107365078
https://blog.csdn.net/ldm_666/article/details/117217007
https://blog.csdn.net/qq_45768588/article/details/119494542
https://blog.csdn.net/qq_49855896/article/details/130209121
https://blog.csdn.net/Zolewit/article/details/89472627
https://blog.csdn.net/zml66666/article/details/102791979
https://blog.csdn.net/BackingEgg/article/details/107810878
https://blog.csdn.net/weixin_39827856/article/details/124530562
https://blog.csdn.net/Tjhfsghbjknjdy/article/details/85011876
https://blog.csdn.net/u011692048/article/details/77938692
https://blog.csdn.net/qq_62916508/article/details/131650062
https://blog.csdn.net/Szu_AKer/article/details/52422191
https://blog.csdn.net/zp1455604302/article/details/90741043
https://blog.csdn.net/a563562675/article/details/80548155
https://www.jb51.net/article/216337.htm
https://blog.csdn.net/qq_22398523/article/details/83278159
https://blog.csdn.net/t18438605018/article/details/119839282
https://blog.csdn.net/weixin_43310882/article/details/119143740
https://www.cnblogs.com/kinologic/p/14765666.html
https://blog.csdn.net/weixin_43852700/article/details/117793581
http://www.rply.cn/news/74872.html
https://www.cnblogs.com/wzw0625/p/13529994.html
https://blog.nowcoder.net/n/48d8b18532324e60817a9a8db21b376d?f=comment
https://www.jianshu.com/p/ee9e812233c8
https://blog.51cto.com/u_13946099/6081080
https://zhuanlan.zhihu.com/p/153129562
https://www.cnblogs.com/MagicConch/p/12179159.html
https://blog.csdn.net/qq_62916508/article/details/130835101
https://blog.csdn.net/qq_45768588/article/details/119644641
https://blog.csdn.net/qq_49855896/article/details/129939167
https://zhuanlan.zhihu.com/p/107091038
https://blog.51cto.com/u_15845758/5795663
https://www.ssfiction.com/c-cyuyankaifa/607363.html?btwaf=68210029
https://www.ufcn.cn/it/831721.html
https://www.cnblogs.com/Dancing-Fairy/p/12634761.html
https://www.cnblogs.com/ccstrong/p/12639201.html
贪心算法
https://blog.csdn.net/weixin_43434305/article/details/88039140
https://blog.csdn.net/qq_35975367/article/details/109829185
https://blog.csdn.net/linhaiyun_ytdx/article/details/50808837
https://blog.csdn.net/qq_40858438/article/details/89066426
https://blog.csdn.net/icefieldwolf/article/details/124203040
https://blog.csdn.net/azulgrana02/article/details/113246534
https://blog.csdn.net/qq_35091252/article/details/90415382
https://blog.csdn.net/LJH132465/article/details/124577003
https://blog.csdn.net/zsbailong/article/details/88920458
https://blog.csdn.net/m0_73876538/article/details/127733655
https://blog.nowcoder.net/n/147d14b917ba4eaca2c951628aaa5a30
https://blog.51cto.com/liujinhui/5337840
https://blog.csdn.net/m0_60631323/article/details/127219825
2.https://blog.csdn.net/LJH132465/article/details/124627458
模拟
https://blog.csdn.net/zkple/article/details/101679415
https://blog.csdn.net/Inthesilence/article/details/104783323
https://blog.csdn.net/Moyan_Li/article/details/126638752
https://blog.csdn.net/qq_35200479/article/details/86698148
https://blog.csdn.net/weixin_43890415/article/details/111029536
https://blog.csdn.net/L946494/article/details/114265416
https://blog.csdn.net/Mint2yx4/article/details/104913729
https://blog.csdn.net/EliminatedAcmer/article/details/113342476
https://blog.csdn.net/qiancm/article/details/119937602
https://www.cnblogs.com/wuweixin/p/5354165.html
https://blog.csdn.net/qq_41562704/article/details/79561685
https://blog.csdn.net/qq_32008381/article/details/122598969
https://blog.csdn.net/qq_47540409/article/details/121981327
https://blog.csdn.net/weixin_42035459/article/details/114928209
https://blog.csdn.net/qq_41145838/article/details/122493860
https://blog.csdn.net/a1552100455/article/details/92083583
https://blog.csdn.net/wkelas/article/details/129469301
https://blog.csdn.net/qq_44614524/article/details/127528688
https://blog.csdn.net/L_Atgq/article/details/120958856
https://blog.csdn.net/Panbk/article/details/127706571
https://blog.csdn.net/weixin_44178960/article/details/125800324
https://blog.csdn.net/naibozhuan3744/article/details/123155433
https://blog.csdn.net/qq_44790264/article/details/120272789
https://blog.csdn.net/saxon_li/article/details/123974696
https://www.bilibili.com/read/cv13173701/
https://www.yisu.com/zixun/612485.html
https://www.cnblogs.com/silentteller/p/12197224.html
2.https://zhuanlan.zhihu.com/p/374041523
https://www.jb51.net/article/222719.htm
https://blog.csdn.net/weixin_43202635/article/details/115540450
https://blog.csdn.net/saxon_li/article/details/123985667