title: What is the time complexity of following code
body: <p>What is the time complexity of the following code? In the second for loop, j increments j=j*2</p>
  
  <pre><code>`int k=0;
   for(i=1;i&lt;=n;i++)
       for(j=1;j&lt;n;j=j*2)
           k=k+1;
   return k;`
  </code></pre>