Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【0072_Week01】初始算法 #97

Open
sunzpmaster opened this issue Mar 15, 2020 · 2 comments
Open

【0072_Week01】初始算法 #97

sunzpmaster opened this issue Mar 15, 2020 · 2 comments

Comments

@sunzpmaster
Copy link
Contributor

   算法对我来说,是相对业务更纯粹,更有意思的东西。基于算法题所展现的出来的灵活性、巧妙性这种东西更让我着迷。我也想通过它,在业务的建模和表结构组织上更加得心应手。

以下是我带来的总结:

切题四件套:

  1. clarification 看题,反复沟通,确保题意
  2. possible solution 列出不同的解法,相对的时间和空间复杂度(time/space),比较优劣
  3. coding 多写
  4. test case 测试案例,显得有始有终

五步解题法

刷题第一遍

    5-10分钟:读题+思考
    无思路,直接看解法:注意!多解法优劣(在于学会解来运用,而不是创造)
    背诵、默写好的解法(背诵、默写能完成,意味可以理解问题了)

刷题第二遍

马上自己写--在LeetCode上提交(了解默写完成后自己写,LeetCode上去跑再debug)
 多种解法比较,体会--》优化

刷题第三遍

     过了一天,再重复做题
    不同解法的熟练程度(不熟练的,针对性再练习)

刷题第四遍

    过了一周后,再反复练习相同的题

刷题第五遍

   面试前一周恢复性练习
@fengyuting
Copy link

和你境遇相同,共勉

@wuxusen
Copy link

wuxusen commented Mar 15, 2020

个人感觉五毒刷题法,在第二遍和第三遍之前再加一遍。 把当天的算法统一敲一遍,加强理解,效果更佳。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants