You have been given a Two Dimensional Array and One Dimensional Array.. You
have to return true if 2D array consists of given 1D Array… 2D array
Consists of 1D array means all the elements of 1d are present contiguously
in left side, right side, in up or in down directions in 2d array..
if 2d array is
2 5 6 7
4 6 8 1
2 5 3 3
0 6 1 9

and 1d array is 6 7 then return true its found at a[0][2] to right
and 1d array is 2 5 6 8 3 then return false
and 1d array is 6 5 6 then return true its found at a[3][1] to up
and 1d array is 3 3 5 then return true its found at a[2][3] to left

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to