常见的七种时间复杂度:
O(1):Constant Compxity 常数复杂度。
O(log n):Logarithmic Complexity 对数复杂度。
O(n):Linear Complexity 线性时间复杂度。
O(n^2):N square Complexity 平方。
O(n^3):N cubic Complexity 立方。
O(2^n):Exponential Grwth 指数。
O(n!):Factorial阶乘。
微信扫一扫
常见的七种时间复杂度:
O(1):Constant Compxity 常数复杂度。
O(log n):Logarithmic Complexity 对数复杂度。
O(n):Linear Complexity 线性时间复杂度。
O(n^2):N square Complexity 平方。
O(n^3):N cubic Complexity 立方。
O(2^n):Exponential Grwth 指数。
O(n!):Factorial阶乘。
相关推荐