如何高效的在leetcode刷题

第一篇:
We assume that you are already proficient in a programming language and have knowledge of basic data structures.
我们假定你已经熟练某门编程语言并且知道基础的数据结构。

  1. we log on to the LeetCode website and click on the LeetCode question bank. You can see that each question has its corresponding difficulty , which is easy, medium, and difficult. We can start with simple questions first, and after about 20-30 simple questions (or when you brush simple questions smoothly), you can challenge medium difficulty. **It is worth noting that we are going to brush mainly medium-difficulty topics. **Simple and difficult questions are relatively simple and cannot involve all the content we need to master; difficult questions often consume more energy and time, such as sometimes only one or two questions can be solved a day (but we You can often learn more methods and skills).

登陆leetcode网站,点击题库,你会发现里面有题目和相应的难度。我们先做简单的,做了二三十道题目,或者当你做简单题目已经很流畅了,你就去做medium的题目。

值得注意的是,我们将主要刷中等难度的题目。太简单的题能学的太少,太难的题花的时间太多,做不了多少。

leetcode网站上还有一些可以下拉的表,这个根据需要选择。

做完题之后要做笔记,总结知识点,总结解题技巧,总结用到的算法。

When you first started to study the question, you may seem to be struggling, and you may not be able to solve a question for a long time, or even have no ideas. Don't be frustrated or doubt yourself. This is actually a normal phenomenon. This is because You have not formed a programming mindset. So it’s best not to waste too much time on the same topic. If you spend half an hour or even an hour on a topic, you can stop and read the comments and solutions in each topic. There are many ideas and codes provided by the great gods. You know, it's great to be able to read and understand these ideas. After you understand, you must re-type the code independently (that is, repeat it). This is very important for improving your programming ability . Remember not to rush for quick success and instant benefits, do not give up lightly, settle down to do the problem, to think, to summarize, and you will be full of rewards.

不要在同一个问题上浪费太多时间,不会就看答案,看了之后要独立复现一遍。
不要追求快速的成功和即时的收益,不要轻易的放弃,静下心去解决问题,去思考,去总结。

最重要的就是独立复现,其次是不要浪费时间,其次是刷中等题目。
第二篇:

  1. Stick to Learning a Single Topic Each Week(每周坚持学习一个主题)
    It goes without saying, but taking in bite-sized information is better than learning everything all at once.
    不要太贪婪。
  2. Stick to a Schedule and Be Consistent
    坚持
    3.为解决问题设定时间线

你可能感兴趣的:(如何高效的在leetcode刷题)