/** * max water * @param arr int整型一维数组 the array * @param arrLen int arr数组长度 * @return long长整型 */ long long maxWater(int* arr, int arrLen) { // write code here int i = 0; int tmp = 0; int j = 0; long long num = 0; int pos = -1; while (i<arrLen-1) { j =...