Modeling and computing intersection between continuous intervals

Problem I created the class ContinuousDimensionInterval, to model an interval of a continuous dimension interval, presented below. namespace Minotaur.Math.Dimensions { […]

Difference between dates in Months and Days [closed]

Problem Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add […]

Vertical Histogram

Problem I’ve been been working on a vertical histogram that prints an asterisk in place of a number in a […]

Get consecutive integer number ranges from list of int

Problem This is an algorithm to return a list of consecutive integer ranges from a list of integers. The practical […]

Calculating range of ArrayLists

Problem I have written this method which calculates the range (max – min) of an ArrayList. I have two for […]

Find disjoint integer intervals

Problem Given a list of numeric intervals in the form of (a,b), where a and b are integers, it finds […]

Maximum Difference in an Array [closed]

Problem Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add […]

Generate sequence in Linq

Problem I want to generate a sequence using Linq that goes from 10 to 100 with a step size of […]

Given 2 disjoint sets of intervals, find the intersections

Problem def getIntersection(set_item1, set_item2): (l11, l12) = set_item1 (l21, l22) = set_item2 if (l11 > l21 and l11 < l22) […]