LeetCode

LeetCode Problems

Stars
5

LeetCode

How to solve LeetCode Problems:

  1. have a sense what kind of method to use, do some scratches on paper/iPad.
  2. code the solution. break down a big problem to small problems. utilize the idea of modulation.
  3. make the general cases correct
  4. make the corner cases and edge conditions correct (such as an empty list as input)
  5. (optional) make the program faster
Related Projects