title: C# Find All Missing Segments In Time
body: <p>I need to find the missing segments within a 10 minute period and I am wondering the best route to take.</p>
  
  <p>Lets say I have three segments in time.</p>
  
  <ol>
  <li>2:30 - 3:43 minute segment.</li>
  <li>4:25 - 4:59 minute segment.</li>
  <li>7:21 - 9:55 minute segment.</li>
  </ol>
  
  <p>With C#, I have a full 10:20 minute segment in time.  I need to find the missing segments when I already have 3 segments from above.</p>
  
  <p>So the segments I need to calculate with C# are the following</p>
  
  <ol>
  <li>0:00 - 2:29 minute segment.</li>
  <li>3:44 - 4:24 minute segment.</li>
  <li>5:00 - 7:20 minute segment.</li>
  <li>9:56 - 10:20 minute segment.</li>
  </ol>
  
  <p>So do I calculate those 4 segments from the 3 segments I already know above?</p>
  
  <p>I think my best route is to just do a for loop and count all the way up to 10:20 in seconds and check if that current second exists within the 3 segments.  If not, add that second to the missing segment.</p>