随笔分类 - Data Structures and Algorithms
some Data Structures and Algorithms things
摘要:目录时间复杂度空间复杂度 时间复杂度 执行次数函数大O表示阶 13O(1)常数阶 2n+3O(n)线性阶 3n²+2n+1O(n2)平方阶 5log2n+20O(logn)对数阶 2n+3nlog2n+19O(nlogn)nlogn阶 6n3+2n2+3n+4O(n3)立方阶 2nO(2n)
阅读全文