Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Snowpack 2.0. Parent comment
So 2^n would be exponential. However, n^2 is instead quadratic.
Quadratic time complexity is better than exponential.
Here is a useful comparison of the rate of growth for various time complexities[0]
[0] https://stackoverflow.com/a/34517541/3574076
So 2^n would be exponential. However, n^2 is instead quadratic.
Quadratic time complexity is better than exponential.
Here is a useful comparison of the rate of growth for various time complexities[0]
[0] https://stackoverflow.com/a/34517541/3574076