Algorithm: Determine if a combination of min/max values fall within a
given range
Imagine you have 3 buckets, but each of them has a hole in it. I'm trying
to fill a bath tub. The bath tub has a minimum level of water it needs and
a maximum level of water it can contain. By the time you reach the tub
with the bucket it is not clear how much water will be in the bucket, but
you have a range of possible values.
Is it possible to adequately fill the tub with water?
Pretty much you have 3 ranges (min,max), is there some sum of them that
will fall within a 4th range?
No comments:
Post a Comment