Lets assume I have the following :
1- a code snippet "CODE1" with time complexity O(N^2)
2- a code snippet "CODE2" with time complexity O(L*N)
if I integrate both snippets in one java program like :
public class Main {
CODE1;
CODE2;
}
can I say that the complexity of this program is O(N^2 + L*N) ?
Only if N depends on the same input