We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
Hi , what will be the 0() of a loop like this -
for(i = 1 ; i <= n*n ; i++)
{
________
_________
}
O(root n)
O(n)
And Can we say [ O(n log(n)) + O(1) ] = O(n log(n))
I have a silly doubt . In the example of Conditional Statement , what is the O of if part statements - will it be [ O(n log(n)) + O(1) ]
Your Explanation is really Great & very Helpful.
thanks
Thanks for this
It was helpful! Thanks.