http://www.perlmonks.org?node_id=1002199


in reply to to find inter connected items

I'm not sure you've completely described the problem fully. In this "game", are you only allowed to start from numbers in the first array, or can you go from the numbers in either array?

Replies are listed 'Best First'.
Re^2: to find inter connected items
by Janaki (Initiate) on Nov 05, 2012 at 05:06 UTC

    I can go from the number in either array,or start with any element in any of the two arrays.Thank you all for considering my question.I will try today.I tried to write a for loop based on index and value but its not working as expected.