I'm just not sure ...
If you have code that can be executed in any of the following difficulties:
- The sequence O (n), such as, for example, two O (n) in the sequence
- O (n & sup2;)
The preferred version will be one that can be executed in linear time. Would it be time that the sequence O (n) would be too large and that O (n & sup2;) would be preferable? In other words, the statement C x O (n) O (n & sup2;) is always true for any constant C?
Why or why not? What are the factors that would influence the condition, so it would be better to choose the complexity O (n & sup2;)?
source
share