These are some of the more commonly seen runtimes based on the input constraints
These predictions are taken from this Codeforces article.arrow-up-right
12
O(n!)O(n!)O(n!)
25
O(2n)O(2^n)O(2n)
100
O(n4)O(n^4)O(n4)
500
O(n3)O(n^3)O(n3)
10410^4104
O(n2)O(n^2)O(n2)
10610^6106
O(nlogβ‘n)O(n \log n)O(nlogn)
10810^8108
O(n)O(n)O(n)
Others
O(logβ‘n)O(\log n)O(logn) or O(1)O(1)O(1)
Last updated 2 years ago