you give array point represent integer coordinate point 2dplane pointsi xi yiThe cost connect point xi yi xj yj manhattan distance xi xj yi yj val denote absolute value valreturn minimum cost point connect all point connect exactly simple path point example 1input point 00223105270output 20explanation we connect point show minimum cost 20notice unique path pair pointsExample 2input point 3122541output 18 Constraints1 pointslength 1000106 xi yi 106All pair xi yi distinct