in reply to Re^6: perl array matrix
in thread perl array matrix
the "y" elements are all neighbors of "z", but the "x" elements are not. Is my understanding correct?( [ x, x, x, x, x], [ x, y, y, y, x], [ x, y, z, y, x], [ x, y, y, y, x], [ x, x, x, x, x], )
But I still don't see why [2, 4, 7, 12] should pass successfully your test in your original data set:
2 and 4 are not neighbors.( [ 1, 2, 3, 4,], [ 5, 6, 7, 8,], [ 9, 10, 11, 12,], [13, 14, 3, 16,], [ 2, 18, 19, 20,] )
Or did I miss something?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: perl array matrix
by perlhelp (Initiate) on Apr 13, 2015 at 01:40 UTC |