title: Using Big O Notation, what is the correct label for this algorithm?
body: <p>I am curious. What is the correct way to describe this using Big-O Notation?</p>
  <pre><code>var prices = [100, 180, 260, 590, 40, 310, 535, 10, 5, 3];
  var biggest_profit = 0;
    
  for (var i = 0; i &lt; prices.length; i++) {
      var first_price = prices[i];
    
      for (var j = i + 1; j &lt;= prices.length; j++) {
        // do something here
      }
  }
    
  </code></pre>
  <p>This is the bit that throws me off:</p>
  <pre><code>j = i + 1
  </code></pre>
  <p>Every time we go through <code>i</code>, the <code>j</code> becomes shorter and shorter.</p>
  <p>What is the correct name for this pattern in Big O Notation?</p>