推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gdw1986
V2EX  ›  Python

书接上文,关于算法

  •  
  •   gdw1986 · Oct 28, 2020 · 3263 views
    This topic created in 2047 days ago, the information mentioned may be changed or developed.
    请问怎么能提高算法能力?就是刷题吗?本人现在最高水平貌似也就到个冒泡排序的水平,反正工作也不是很忙,想提高一下。
    13 replies    2020-10-29 21:10:21 +08:00
    xiaoriri666
        1
    xiaoriri666  
       Oct 28, 2020
    多看书。看看数据结构和算法的书
    gdw1986
        2
    gdw1986  
    OP
       Oct 28, 2020
    @xiaoriri666 感谢回复
    siyemiaokube
        3
    siyemiaokube  
       Oct 28, 2020 via iPhone
    可以但没必要的方法:使用范畴的语言
    qazwsxkevin
        4
    qazwsxkevin  
       Oct 28, 2020
    胡扯一下自己能想到的
    刷题
    不赶着交出的东西,坚决不用做好的轮子,自己做轮子
    AmosAlbert
        5
    AmosAlbert  
       Oct 29, 2020
    刷题
    kuangwinnie
        6
    kuangwinnie  
       Oct 29, 2020
    刷题就行了
    500 题下来什么都通了,再不通的话也能看得懂别人在写啥了
    ericgui
        7
    ericgui  
       Oct 29, 2020
    反正就是多刷吧,没啥好说的
    no1xsyzy
        8
    no1xsyzy  
       Oct 29, 2020
    刷题,碰到不会的就找书看
    刷题是为了在学新算法的同时能够直接能够有东西练习,而且还有自动化测试(误)来测试你做的结果对不对。
    没有比绿油油的 AC 更让人放心自己写的是对的的方法了。
    hello2060
        9
    hello2060  
       Oct 29, 2020 via iPhone
    基本数据结构都要知道,算法就是靠练 我推荐 leetcode
    gdw1986
        10
    gdw1986  
    OP
       Oct 29, 2020 via Android
    @AmosAlbert #5 可是没啥基础自己想不出来的话刷题还有意义吗
    gdw1986
        11
    gdw1986  
    OP
       Oct 29, 2020 via Android
    @hello2060 #9 昨天看了下,我连简单的题的都没啥想法,基础太差了
    slipper
        12
    slipper  
       Oct 29, 2020
    @gdw1986 先看基本数据结构的原理和实现,然后再刷题,刷着刷着就想的出来了。算法和数学一样,有题型和固定思路,你想自己不看答案就能写出来,最起码要先刷 100 道(三种难度都要刷)。
    gdw1986
        13
    gdw1986  
    OP
       Oct 29, 2020
    @slipper 嗯,我找了一本算法书,先看看数据结构吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2987 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 03:16 · PVG 11:16 · LAX 20:16 · JFK 23:16
    ♥ Do have faith in what you're doing.