import java.util.*; import static java.lang.Math.pow; /* Illustration: Just think the simplest question,if the situation is this: 1 -3 1 1 1 1 -2 1 1 How we find the position of -2 from mommy's position the earliest,one way is that,we can regard the position of -3 as centre, then access the four pos...