##
Minimum difference between adjacent elements of array which contain elements from each row of a matrix
December 26, 2016

Given a matrix of N rows and M columns, the task is to find the minimum absolute difference between any of the two adjacent elements of an array of size N, which is created by picking one element from each row of the matrix. Note the element picked from row 1 will become arr[0], element… Read More »