Dinesh Goyal's submission of D-Dimensional MST | CodeChef