title: What is the time complexity of the following code snippet where n is a positive integer:
body: <pre><code>s=0; c=n; p=log(n);
  for (h=1; h&lt;p; h++) {
   c = c/2;
   for (j=1; j&lt;c; j++) {
    for (k=1; k&lt;=h; k++)
      s++;
   }
  }
  </code></pre>
  
  <p>What is the time complexity of the following code snippet where n is a positive integer:</p>