C # program to find best meeting point in 2D array
using System ; using System . Collections . Generic ; class GFG { static int ROW = 3 ; static int COL = 5 ; static int minTotalDistance ( int [ , ] grid ) { if ( ROW == 0 COL == 0 ) return 0 ; List < int > vertical = new List < int > ( ) ; List < int > horizontal = new List < int > ( ) ;