学习笔记:
不要死磕。
五毒神掌
5-10 分钟读题和思考,如果没有思路,看题解,默写代码
马上自己写,提交LeetCode,多种解法,体会优化
24 小时之后,再重复做题
一周后重复做题
面试前一周恢复性训练
切题四件套
理清题意,确定题目的要求
想尽可能多的解法,对比几种写法的时空复杂度,找到比较好的解法
尽可能多地动手写
测试用例
#141 Linked List Cycle https://leetcode.com/problems/linked-list-cycle/
#142 Linked List Cycle II https://leetcode.com/problems/linked-list-cycle-ii/
#155 Min Stack https://leetcode.com/problems/min-stack/
#189 Rotate Array https://leetcode.com/problems/rotate-array/
#20 Valid Parentheses https://leetcode.com/problems/valid-parentheses/
#21 Merge Two Sorted Lists https://leetcode.com/problems/merge-two-sorted-lists/
#239 Sliding Window Maximum https://leetcode.com/problems/sliding-window-maximum/
#24 Swap Nodes in Pairs https://leetcode.com/problems/swap-nodes-in-pairs/
#25 Reverse Nodes in k-Group https://leetcode.com/problems/reverse-nodes-in-k-group/
#26 Remove Duplicates from Sorted Array https://leetcode.com/problems/remove-duplicates-from-sorted-array/
#283 Move Zeroes https://leetcode.com/problems/move-zeroes/
#42 Trapping Rain Water https://leetcode.com/problems/trapping-rain-water/
#11 Container With Most Water https://leetcode.com/problems/container-with-most-water/
#1 Two Sum https://leetcode.com/problems/two-sum/
#15 3Sum https://leetcode.com/problems/3sum/
#20 Climbing Stairs https://leetcode.com/problems/climbing-stairs/
#206 Reverse Linked List https://leetcode.com/problems/reverse-linked-list/
#641 Design Circular Deque https://leetcode.com/problems/design-circular-deque/
#66 Plus One https://leetcode.com/problems/plus-one/
#70 Climbing Stairs https://leetcode.com/problems/climbing-stairs/
#88 Merge Sorted Array https://leetcode.com/problems/merge-sorted-array/
#84 Largest Rectangle in Histogram https://leetcode.com/problems/largest-rectangle-in-histogram/