Validate list of numbers wheather the parent values is exsists
<p>I have a list of numbers to validate whether the parent values is exists?
For example if we have a number as 3.5.8 the number 3 and 3.5 should exists in the given list.
Iterating through the list will cost. If any body has a good idea please share</p>

<p>Thanks</p>
