4.时间复杂度和空间复杂度-2

什么叫做算法时间复杂度?

大O攻略:

常数阶O(1)

线性阶O(n)

平方阶O(n^2)

对数阶O(log2(n))

 

posted @ 2018-11-09 10:46  Paradox880  阅读(122)  评论(0编辑  收藏  举报