LeetCode
How to solve LeetCode Problems:
- have a sense what kind of method to use, do some scratches on paper/iPad.
- code the solution. break down a big problem to small problems. utilize the idea of modulation.
- make the general cases correct
- make the corner cases and edge conditions correct (such as an empty list as input)
- (optional) make the program faster