Consider the Given Loop:
for(int i=0;i<>
for(int j=0;j<>
/...Constant work../
}
Taking two different values of n, verify that the time complexity of the given loops is O(n2).
Code in C++. No need for user input. Run the code twice for two values of n.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here