Monday, January 8, 2018

Interval algorithm

January 8, 2018

Introduction


The algorithm related to two intervals is to define the overlap area. The interval overlap is easy to define if using maximum of two start value and minimum of two end value of two intervals. I wrote another one in 25 minutes, and then I like to review the code.

Code review


Here is the C# code.


No comments:

Post a Comment