Driver Code
A = [ [ 1 , 1 , 0 ] , [ 0 , 0 , 1 ] , [ 0 , 1 , 0 ] ] NEW_LINE B = [ [ 0 , 0 , 1 ] , [ 0 , 1 , 0 ] , [ 1 , 1 , 0 ] ] NEW_LINE N = len ( A ) NEW_LINE M = len ( B [ 0 ] ) NEW_LINE print ( minSwaps ( N , M , A , B ) ) NEW_LINE