title: Big O notation with Linq
body: <p>Considering the following linq methods are the following:</p>
  
  <pre><code>// distinct() is O(n)
  // toList is O(n)
  // OrderBy is O(n log(n))
  </code></pre>
  
  <p>And I were to do this operation on a string:</p>
  
  <pre><code>string s = "efgabcddddddaaaaaaaaaaa";
  List&lt;char&gt; myList = s.Distinct().OrderBy(q =&gt; q).ToList();
  </code></pre>
  
  <p>Is chaining the <code>Distinct().OrderBy().ToList()</code> resulting in this function being <code>O(n^2 log(n))</code> or <code>O(n + n log(n))</code> ? 
  And if I were to add another linq method that's O(n), what would it result in?</p>