What is the time complexity of the following code :
int i, j, k = 0; for (i = n/2; i <= n; i++) { for (j = 2; j <= n; j = j * 2) { k = k + n/2; } }
Sign Up using
Full Name *
Email *
Password *
By creating an account I have read and agree to InterviewBit’s Terms and Privacy Policy.
Log In using