LeetCode:

  1. Comprehension surface
    • Understand the problem and think about more examples and test data to see if you missed anything
    • Extract key information from the questions
    • During the interview, confirm your understanding with the interviewer
  2. Part of the implementation
    • Whatever the problem is, let’s try to implement a naive solution, okay
    • Or in partial scenarios — try to make your solution better and cover as many scenarios as possible
  3. Prompt solution
    • See tips! = the answer key
    • Look at a part of the solution to see if you can find a breakthrough, such as the topic category, the title of the solution, time complexity, small conclusions, etc
    • If you’re running out of ideas during the interview, talk to the interviewer for appropriate cues (understand what the interviewer is leading you to)
  4. Independent answers
    • Solve the problems independently and pay attention to the tests
  5. Write the answer key
    • Try to analyze and compare the advantages and disadvantages of different solutions
    • You can form a diary to record your difficulties
    • Equal to and others talk about the topic, help deepen their understanding
    • Post quick review

LeetCode training method

Recommended classification brush -> late comprehensive brush

  • Brush: Learn the model

    Brush a few strokes for each subcategory.

  • Second brush: Review representative questions

    Small categories synthesis of large categories, brush the classification of more topics, draw inferions. Do it with as little prompting as possible

  • Three brushes: comprehensive topic

    Try to independently implement + test —- weekly games