118个按照题目类型分门别类的LeetCode题目,刷完这个再找工作容易多啦!
如果想从事算法相关,LeetCode必刷,没有捷径。
我从2020.04月开始刷LeetCode,花了些时间找了118道经典题目,前后反反复复刷了三遍之后,到2020下半年面对大厂的coding才开始不怯场。 在此之前,几乎没刷过LeetCode,数据结构掌握也不是很深刻。
LeetCode是我面试准备中跨越的第一个难题,当我刷完三遍这118道经典题目以后,LC在面试中逐渐从失分项变成了加分项。
在此祭出我的血和泪实践出来的经验,希望各位找工作的人能少走弯路,直达大厂。
0.排序(这里有一些非LC的题目,自己整理的比较基础的冒泡、堆排、合并排、快排等,大家需要先学会写这些哦) 1.动态规划 2.递归+DFS+BFS+回溯 3.栈 4.HashDict 5.链表 6.数组 7.堆 8.二分+分治 9.双指针+滑动窗口 10.树 11.图 12.位运算
这里说明一下,树排在比较后面,不代表树问题不重要,而是树问题会包含很多算法**(如递归、动归、回溯等),所以可以先把算法**刷了再刷树的题目,上手比较容易。再次声明,树很重要哦~: