We rely on ads to keep creating quality content for you to enjoy for free.
Please support our site by disabling your ad blocker.
Continue without supporting us
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
James Rose
I've spent a lot of time trying to think through this issue on my own, but I'm not getting a better answer than what I have and my answer is HORRIBLE. So... feel free to pop me upside my head and say; "dumbass...."
I have a situation where I have multiple ranges. i.e. 100 to 200 and 100 to 200 (yes that is the same value ranges, but each range is a separate list of property values. (just go with it) I have a second set of values. Each object in this second set can have a range within those two ranges. (I'll give examples below) What I am attempting to find out is the subset of values from the first sets that are not within the second set.
Property Sets
"Set1" range from 0 to 3
"Set2" range from 0 to 3
Object Sets
"Object1" range for "Set1" from 0 to 2, range for "Set2" 0 to 3
"Object2" range for "Set1" from 0 to 3, range for "Set2" 0 to 2
In this example this example there would be a subset for for the values not found in the objects that would equal
Set1 3, Set2, 3
Link to comment
https://www.neowin.net/forum/topic/1210109-c-compare-multiple-ranges-to-multiple-ranges/Share on other sites
3 answers to this question
Recommended Posts