What is time complexity of following code :
int count = 0; for (int i = N; i > 0; i /= 2) { for (int j = 0; j < i; j++) { count += 1; } }
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