Microsoft | Phone | Print Elements Between 2 Positions in Matrix
Anonymous User
1162

I couldn't solve the qn. It will be very helpful if someone can write a python solution to this

Print values and co-ordinates between 2 given co-ordinate points in a 2D array.

Example:

Input:
[[5, 2, 3],
 [4, 41, 2],
 [11, 34, 98]]
points = [1,2], [2,1]

Output: [2, 11, 34], co-ordinates = [[1, 2], [2, 0], [2,1]]
Comments (7)