A : [ -49, 58, 72, -78, 9, 65, -42, -3 ]
B : [ 30, -13, -70, 58, -34, 79, -36, 27 ]
How can the solution be 28 for this testcase
A : [ -49, 58, 72, -78, 9, 65, -42, -3 ]
B : [ 30, -13, -70, 58, -34, 79, -36, 27 ]
How can the solution be 28 for this testcase
We need to find the hole at the minimum distance to a mice,so rearrange the holes to get the minimum for the above test case.sort them.