
Crack LeetCode!
- understand your problem and crack it
You should read the description of the problem carefully in order to understand it fully. Then you can think about small examples and special cases by hand.
Determine the set of inputs(instances of problem) - ask what algorithm you are using in your program and what are the key points
- write them down
- think about time complexity and space complexity, and think hard on how to improve them
How to crack LeetCode
- finish about 20 “easy” exercises
The goal is to be familiar with the grammar of Java(or other language). - finish the next 30 easy exercise
This time, instead of just trying to be familiar with the grammar, you should think about the data structure you are dealing with in your program.




近期评论