73

每个程序员都应该收藏的算法复杂度速查表

 5 years ago
source link: http://www.10tiao.com/html/605/201806/2654251723/4.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

点击上方“程序员大咖”,选择“置顶公众号”

关键时刻,第一时间送达!


这篇文章覆盖了计算机科学里面常见算法的时间和空间的大 OBig-O 复杂度。我之前在参加面试前,经常需要花费很多时间从互联网上查找各种搜索和排序算法的优劣,以便我在面试时不会被问住。最近这几年,我面试了几家硅谷的初创企业和一些更大一些的公司,如 Yahoo、eBay、LinkedIn 和 Google,每次我都需要准备这个,我就在问自己,“为什么没有人创建一个漂亮的大 O 速查表呢?”所以,为了节省大家的时间,我就创建了这个,希望你喜欢!

--- Eric[1] 

图例


数据结构操作


数组排序算法


图操作

堆操作


大 O 复杂度图表

Big O 复杂度


  • 作者: Eric

  • https://linux.cn/article-7480-1.html

  • 程序员大咖整理发布,转载请联系作者获得授权

【点击成为源码大神】


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK