Reference: https://github.com/greyireland/algorithm-pattern but changed sth. --by wen0.618**
Note 7/30:基本的保持原来的形式和分类,稍有添加,修改了对应答案的语言cpp,但是个人感觉分类有所欠缺合理性,jffhahahh...欢迎补充
这个模板主要是介绍了一些通用的刷题模板,以及一些常见问题,如到底要刷多少题,按什么顺序来刷题,如何提高刷题效率等🐶~。
step:
0.用什么数据结构处理数据,int、vector、stack、queue...及其对应的语法 1.用什么算法思路:递归分治、贪心、动态规划||有序数组搜索-binarysearch、遍历/二叉树-dfs/bfs、排序-quicksort/mergesort/冒泡、、、 medium greedy、dp 2.一些技巧/模板:快慢双指针、前后双指针、二维转一维、、、
按此 repo 目录刷一遍,如果中间有题目卡住了先跳过,然后刷题一遍 LeetCode 探索基础卡片,最后快要面试时刷题一遍剑指 offer。
1、 [algorithm-pattern 练习题]
2、 LeetCode 卡片
3、 剑指 offer
刷题时间可以合理分配,如果打算准备面试了,建议前面两部分 一个半月 (6 周)时间刷完,最后剑指 offer 半个月刷完,边刷可以边投简历进行面试,遇到不会的不用着急,往模板上套就对了,如果面试管给你提示,那就好好做,不要错过这大好机会~
注意点:如果为了找工作刷题,遇到 hard 的题如果有思路就做,没思路先跳过,先把基础打好,再来刷 hard 可能效果会更好~
1.c++base
2.summry of sth.&&update sm imgs
3.others++
持续更新中,觉得还可以的话点个 star 收藏呀 ⭐️~ ⭐️