title: Time complexity for a loop with two nested loops?
body: <p>I understand that</p>
  
  <pre><code>var arr;  // This is an array of arrays 
  
  for (i = 0; i &lt; arr.length; i++)
  {
  
    for(j = 0; j &lt; arr[i].length; j++)
    {
     // Some code
    }
  } 
  </code></pre>
  
  <p>is n^2, however my code below is a double nested for loop and im just curious on what the complexity for this type of function would look like</p>
  
  <pre><code>var arr;  // This is an array of arrays
  
  
  for (i = 0; i &lt; arr.length; i++)
  {
  
    for(j = 0; j &lt; arr[i].length; j++)
    {
     // Some code
    }
  
    for(k = 0; k &lt; arr[i].length; k++)
    {
     // Some code
    }
  } 
  </code></pre>