Cody

Problem 2592. LocateMembership | Membership of Matrix in another matrix

Let a and b be given by

 a = [ 2 1 1 1   
       1 2 1 1 
       1 1 2 1 
       1 1 1 2
       4 0 0 0 ] 
 b = [ 2 1 1
       1 2 1
       1 1 2 ]

then b can be created using a (b is wholly present in a). So output should be location of central element of b in a.

Here output is [3,3] else it should be [0,0].

Solution Stats

52.78% Correct | 47.22% Incorrect
Last solution submitted on Dec 10, 2018

Problem Comments

Solution Comments

Problem Recent Solvers15

Suggested Problems

More from this Author6

Problem Tags