常见的时间复杂度及其增长速度比较

O(1)<O(log n)<O(n)<O(nlog n)<O(n^2)<O(n^3)< O(2^n)<O(n!)<O(n^n)

原文地址:https://www.cnblogs.com/canneddream/p/14172795.html